summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Posix/no_asan_gen_globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/Posix/no_asan_gen_globals.c')
-rw-r--r--test/asan/TestCases/Posix/no_asan_gen_globals.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/asan/TestCases/Posix/no_asan_gen_globals.c b/test/asan/TestCases/Posix/no_asan_gen_globals.c
new file mode 100644
index 0000000000000..c686f83ac4a89
--- /dev/null
+++ b/test/asan/TestCases/Posix/no_asan_gen_globals.c
@@ -0,0 +1,12 @@
+// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
+// XFAIL: android
+// FIXME: http://llvm.org/bugs/show_bug.cgi?id=22682
+// REQUIRES: asan-64-bits
+// Make sure __asan_gen_* strings do not end up in the symbol table.
+
+// RUN: %clang_asan %s -o %t.exe
+// RUN: nm %t.exe | FileCheck %s
+
+int x, y, z;
+int main() { return 0; }
+// CHECK-NOT: __asan_gen_