test: add a ODR violation check for the static standard library

The static version of the standard library was leaking symbols in the
`llvm::` namespace which would result in ODR violations were the
artifact linking against `LLVMSupport` (via another dependency).  In
particular, `llvm::SmallVector` and `llvm::StringSwitch` symbols were
being leaked.  This adds a test case specifically for the static variant
of the library.  The dynamic variant of the library is already tested in
a separate test.
This commit is contained in:
Saleem Abdulrasool
2020-05-28 15:55:03 -07:00
parent 94ff157c60
commit 63c8c005d7

View File

@@ -0,0 +1,5 @@
// RUN: %llvm-nm --defined-only -C %target-static-stdlib-path/libswiftCore.a | %FileCheck --allow-empty %s
// CHECK-NOT: [^:]llvm::
// REQUIRES: OS=linux-gnu
// REQUIRES: static_stdlib