diff options
Diffstat (limited to 'test/hwasan/TestCases/stack-oob.c')
-rw-r--r-- | test/hwasan/TestCases/stack-oob.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/hwasan/TestCases/stack-oob.c b/test/hwasan/TestCases/stack-oob.c index ba7493092..8c8c11055 100644 --- a/test/hwasan/TestCases/stack-oob.c +++ b/test/hwasan/TestCases/stack-oob.c @@ -1,4 +1,8 @@ +// RUN: %clang_hwasan_oldrt -DSIZE=2 -O0 %s -o %t && %run %t +// RUN: %clang_hwasan -DSIZE=2 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s +// RUN: %clang_hwasan_oldrt -DSIZE=15 -O0 %s -o %t && %run %t // RUN: %clang_hwasan -DSIZE=15 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s +// RUN: %clang_hwasan_oldrt -DSIZE=16 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s // RUN: %clang_hwasan -DSIZE=16 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s // RUN: %clang_hwasan -DSIZE=64 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s // RUN: %clang_hwasan -DSIZE=0x1000 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s @@ -16,9 +20,9 @@ int f() { } int main() { - return f(); + f(); // CHECK: READ of size 1 at - // CHECK: #0 {{.*}} in f{{.*}}stack-oob.c:15 + // CHECK: #0 {{.*}} in f{{.*}}stack-oob.c:19 // CHECK: is located in stack of threa |