summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/output_tests/shared-lib-test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/output_tests/shared-lib-test.cc')
-rw-r--r--compiler-rt/lib/asan/output_tests/shared-lib-test.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/output_tests/shared-lib-test.cc b/compiler-rt/lib/asan/output_tests/shared-lib-test.cc
index e492572c728..d0f90d0a7ba 100644
--- a/compiler-rt/lib/asan/output_tests/shared-lib-test.cc
+++ b/compiler-rt/lib/asan/output_tests/shared-lib-test.cc
@@ -32,6 +32,11 @@ int main(int argc, char *argv[]) {
if (!inc) return 1;
printf("ok\n");
inc(1);
- inc(-1);
+ inc(-1); // BOOM
return 0;
}
+
+// CHECK: {{.*ERROR: AddressSanitizer global-buffer-overflow}}
+// CHECK: {{READ of size 4 at 0x.* thread T0}}
+// CHECK: {{ #0 0x.*}}
+// CHECK: {{ #1 0x.* in main .*shared-lib-test.cc:3[567]}}
OpenPOWER on IntegriCloud