Files
swift-mirror/test/stdlib/llvm-support-odr-violation-static.test-sh
Saleem Abdulrasool 63c8c005d7 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.
2020-05-29 14:02:25 -07:00

6 lines
186 B
Plaintext

// 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