[compiler-rt] r198018 - [ASan] Fix the test for __asan_gen_ globals and actually fix http://llvm.org/bugs/show_bug.cgi?id=17976

Alexander Potapenko glider at google.com
Wed Dec 25 08:46:28 PST 2013


Author: glider
Date: Wed Dec 25 10:46:27 2013
New Revision: 198018

URL: http://llvm.org/viewvc/llvm-project?rev=198018&view=rev
Log:
[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).

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c?rev=198018&r1=198017&r2=198018&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/no_asan_gen_globals.c Wed Dec 25 10:46:27 2013
@@ -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_





More information about the llvm-commits mailing list