aboutsummaryrefslogtreecommitdiff
path: root/lib/asan/output_tests/null_deref.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/output_tests/null_deref.cc')
-rw-r--r--lib/asan/output_tests/null_deref.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/asan/output_tests/null_deref.cc b/lib/asan/output_tests/null_deref.cc
deleted file mode 100644
index c152a4202e33..000000000000
--- a/lib/asan/output_tests/null_deref.cc
+++ /dev/null
@@ -1,17 +0,0 @@
-__attribute__((noinline))
-static void NullDeref(int *ptr) {
- ptr[10]++;
-}
-int main() {
- NullDeref((int*)0);
-}
-
-// Check-Common: {{.*ERROR: AddressSanitizer crashed on unknown address}}
-// Check-Common: {{0x0*00028 .*pc 0x.*}}
-// Check-Common: {{AddressSanitizer can not provide additional info. ABORTING}}
-
-// atos on Mac cannot extract the symbol name correctly.
-// Check-Linux: {{ #0 0x.* in NullDeref.*null_deref.cc:3}}
-// Check-Darwin: {{ #0 0x.* in .*NullDeref.*null_deref.cc:3}}
-
-// Check-Common: {{ #1 0x.* in main.*null_deref.cc:6}}