Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: tests_lit/asan_tests/calloc_err.ll

Issue 2145213002: Subzero: implemented wrapper script to replace calls to calloc() (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed comments and added error testing Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« pydir/sz_driver.py ('K') | « tests_lit/asan_tests/calloc.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« pydir/sz_driver.py ('K') | « tests_lit/asan_tests/calloc.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698