1 // RUN: %clang_hwasan -DSIZE=16 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
2 // RUN: %clang_hwasan -DSIZE=64 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // RUN: %clang_hwasan -DSIZE=0x1000 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
5 // REQUIRES: stable-runtime
8 #include <sanitizer/hwasan_interface.h>
10 __attribute__((noinline))
19 // CHECK: READ of size 1 at
20 // CHECK: #0 {{.*}} in f{{.*}}stack-oob.c:14
22 // CHECK: is located in stack of threa
24 // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in f