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

Side by Side Diff: tests_lit/asan_tests/calloc.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 unified diff | Download patch
OLDNEW
(Empty)
1 ; Test that sz-clang.py and sz-clang++.py successfully replace calls to calloc
2
3 ; RUN: %S/../../pydir/sz-clang.py -fsanitize-address %S/Input/calloc.c -E \
4 ; RUN: | FileCheck %s
5
6 ; RUN: %S/../../pydir/sz-clang++.py -fsanitize-address %S/Input/calloc.c -E \
7 ; RUN: | FileCheck %s
8
9 ; CHECK-LABEL: int main(void) {
10 ; CHECK-NEXT: void *buf = (__asan_dummy_calloc(14, sizeof(int)));
11 ; CHECK-NEXT: strcpy(buf, "Hello, world!");
12 ; CHECK-NEXT: printf("%s\n", buf);
13 ; CHECK-NEXT: free(buf);
14 ; CHECK-NEXT: }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698