summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/lit_tests/interface_symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/lit_tests/interface_symbols.c')
-rw-r--r--compiler-rt/lib/asan/lit_tests/interface_symbols.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/interface_symbols.c b/compiler-rt/lib/asan/lit_tests/interface_symbols.c
index 5cbceebd430..605360601f4 100644
--- a/compiler-rt/lib/asan/lit_tests/interface_symbols.c
+++ b/compiler-rt/lib/asan/lit_tests/interface_symbols.c
@@ -1,10 +1,11 @@
// Check the presense of interface symbols in compiled file.
// RUN: %clang -fsanitize=address -dead_strip -O2 %s -o %t.exe
-// RUN: nm %t.exe | egrep " [TW] " | sed "s/.* T //" | sed "s/.* W //" \
+// RUN: nm %t.exe | grep " T " | sed "s/.* T //" \
// RUN: | grep "__asan_" | sed "s/___asan_/__asan_/" > %t.symbols
// RUN: cat %p/../../../include/sanitizer/asan_interface.h \
// RUN: | sed "s/\/\/.*//" | sed "s/typedef.*//" \
+// RUN: | grep -v "OPTIONAL" \
// RUN: | grep "__asan_.*(" | sed "s/.* __asan_/__asan_/;s/(.*//" \
// RUN: > %t.interface
// RUN: echo __asan_report_load1 >> %t.interface
OpenPOWER on IntegriCloud