summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-12-25 16:46:27 +0000
committerAlexander Potapenko <glider@google.com>2013-12-25 16:46:27 +0000
commit4976bba1db93c290c6d4616013dc6e31708aae9e (patch)
tree5c1e9d637fe4e47c1b86a7b9f813234fe833cc24 /lib
parentb06fe693bbf13c9a8205eb03b3e12e6f87adc1c0 (diff)
[ASan] Fix the test for __asan_gen_ globals and actually fix http://llvm.org/bugs/show_bug.cgi?id=17976
by setting the correct linkage (as stated in the bug). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/asan/lit_tests/TestCases/no_asan_gen_globals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c b/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
index 9022aeef4..a747d7a36 100644
--- a/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
+++ b/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
@@ -1,7 +1,8 @@
// Make sure __asan_gen_* strings do not end up in the symbol table.
// RUN: %clang_asan %s -o %t.exe
-// RUN: nm %t.exe | grep __asan_gen_ || exit 0
+// RUN: nm %t.exe | FileCheck %s
int x, y, z;
int main() { return 0; }
+// CHECK-NOT: __asan_gen_