Skip to content

Commit 2706b1a

Browse files
committed
[hwasan] Test use-after-scope with -fno-exceptions.
Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D109224
1 parent 58c1885 commit 2706b1a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// This is the ASAN test of the same name ported to HWAsan.
22

33
// RUN: %clangxx_hwasan -mllvm -hwasan-use-after-scope -std=c++11 -O0 %s -o %t
4+
// RUN: %clangxx_hwasan -fno-exceptions -mllvm -hwasan-use-after-scope -std=c++11 -O0 %s -o %t-noexcept
5+
46
// RUN: not %run %t 0 2>&1 | FileCheck %s
57
// RUN: not %run %t 1 2>&1 | FileCheck %s
68
// RUN: not %run %t 2 2>&1 | FileCheck %s
@@ -13,6 +15,18 @@
1315
// RUN: not %run %t 9 2>&1 | FileCheck %s
1416
// RUN: not %run %t 10 2>&1 | FileCheck %s
1517

18+
// RUN: not %run %t-noexcept 0 2>&1 | FileCheck %s
19+
// RUN: not %run %t-noexcept 1 2>&1 | FileCheck %s
20+
// RUN: not %run %t-noexcept 2 2>&1 | FileCheck %s
21+
// RUN: not %run %t-noexcept 3 2>&1 | FileCheck %s
22+
// RUN: not %run %t-noexcept 4 2>&1 | FileCheck %s
23+
// RUN: not %run %t-noexcept 5 2>&1 | FileCheck %s
24+
// RUN: not %run %t-noexcept 6 2>&1 | FileCheck %s
25+
// RUN: not %run %t-noexcept 7 2>&1 | FileCheck %s
26+
// RUN: not %run %t-noexcept 8 2>&1 | FileCheck %s
27+
// RUN: not %run %t-noexcept 9 2>&1 | FileCheck %s
28+
// RUN: not %run %t-noexcept 10 2>&1 | FileCheck %s
29+
1630
// REQUIRES: aarch64-target-arch
1731
// REQUIRES: stable-runtime
1832

0 commit comments

Comments
 (0)