diff options
Diffstat (limited to 'test/asan/TestCases/Linux/globals-gc-sections-lld.cc')
-rw-r--r-- | test/asan/TestCases/Linux/globals-gc-sections-lld.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/asan/TestCases/Linux/globals-gc-sections-lld.cc b/test/asan/TestCases/Linux/globals-gc-sections-lld.cc deleted file mode 100644 index 0d8bcdd1c..000000000 --- a/test/asan/TestCases/Linux/globals-gc-sections-lld.cc +++ /dev/null @@ -1,15 +0,0 @@ -// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=0 -// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=1 - -// https://code.google.com/p/address-sanitizer/issues/detail?id=260 -// REQUIRES: lld - -int undefined(); - -// On i386 clang adds --export-dynamic when linking with ASan, which adds all -// non-hidden globals to GC roots. -__attribute__((visibility("hidden"))) int (*unused)() = undefined; - -int main() { - return 0; -} |