[compiler-rt] 2706b1a - [hwasan] Test use-after-scope with -fno-exceptions.

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 6 02:10:26 PDT 2021


Author: Florian Mayer
Date: 2021-09-06T10:10:09+01:00
New Revision: 2706b1a6e2dfe79a5c17c7d6f99401d386a9355b

URL: https://github.com/llvm/llvm-project/commit/2706b1a6e2dfe79a5c17c7d6f99401d386a9355b
DIFF: https://github.com/llvm/llvm-project/commit/2706b1a6e2dfe79a5c17c7d6f99401d386a9355b.diff

LOG: [hwasan] Test use-after-scope with -fno-exceptions.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D109224

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp b/compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
index 66fb339e477ac..b3b928d29c73f 100644
--- a/compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
+++ b/compiler-rt/test/hwasan/TestCases/use-after-scope-types.cpp
@@ -1,6 +1,8 @@
 // This is the ASAN test of the same name ported to HWAsan.
 
 // RUN: %clangxx_hwasan -mllvm -hwasan-use-after-scope -std=c++11 -O0 %s -o %t
+// RUN: %clangxx_hwasan -fno-exceptions -mllvm -hwasan-use-after-scope -std=c++11 -O0 %s -o %t-noexcept
+
 // RUN: not %run %t 0 2>&1 | FileCheck %s
 // RUN: not %run %t 1 2>&1 | FileCheck %s
 // RUN: not %run %t 2 2>&1 | FileCheck %s
@@ -13,6 +15,18 @@
 // RUN: not %run %t 9 2>&1 | FileCheck %s
 // RUN: not %run %t 10 2>&1 | FileCheck %s
 
+// RUN: not %run %t-noexcept 0 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 1 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 2 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 3 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 4 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 5 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 6 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 7 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 8 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 9 2>&1 | FileCheck %s
+// RUN: not %run %t-noexcept 10 2>&1 | FileCheck %s
+
 // REQUIRES: aarch64-target-arch
 // REQUIRES: stable-runtime
 


        


More information about the llvm-commits mailing list