Index: tests_lit/asan_tests/calloc_err.ll |
diff --git a/tests_lit/asan_tests/calloc_err.ll b/tests_lit/asan_tests/calloc_err.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f492dbb1b7137b43c2df9f86ca97c5011d6c7525 |
--- /dev/null |
+++ b/tests_lit/asan_tests/calloc_err.ll |
@@ -0,0 +1,11 @@ |
+; Test that errors in source files are transparently reported by |
+; sz-clang.py and sz-clang++.py |
+ |
+; RUN: not %S/../../pydir/sz-clang.py -fsanitize-address %S/Input/calloc_err.c \ |
+; RUN: 2>&1 | FileCheck %s |
+ |
+; RUN: not %S/../../pydir/sz-clang\+\+.py -fsanitize-address \ |
+; RUN: %S/Input/calloc_err.c 2>&1 | FileCheck %s |
+ |
+; CHECK-LABEL: Input/calloc_err.c:1:18: warning: |
+; CHECK-SAME: implicit declaration of function 'not_defined' is invalid in C99 |