1 // Sanity checking a test in pure C.
2 // RUN: %clang_asan -O2 %s -o %t
3 // RUN: not %t 2>&1 | FileCheck %s
5 // Sanity checking a test in pure C with -pie.
6 // RUN: %clang_asan -O2 %s -pie -o %t
7 // RUN: not %t 2>&1 | FileCheck %s
11 char *x
= (char*)malloc(10 * sizeof(char));
14 // CHECK: heap-use-after-free
16 // CHECK: main{{.*}}sanity_check_pure_c.c:[[@LINE-4]]
18 // CHECK: main{{.*}}sanity_check_pure_c.c:[[@LINE-7]]