[compiler-rt] dd6350d - Revert "[test] Don't rely on default of detect_stack_use_after_return"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 23:26:38 PDT 2022
Author: Vitaly Buka
Date: 2022-04-22T23:26:29-07:00
New Revision: dd6350d937883231142fa5fc4916238604e2898b
URL: https://github.com/llvm/llvm-project/commit/dd6350d937883231142fa5fc4916238604e2898b
DIFF: https://github.com/llvm/llvm-project/commit/dd6350d937883231142fa5fc4916238604e2898b.diff
LOG: Revert "[test] Don't rely on default of detect_stack_use_after_return"
Revent acidentally deleted lines.
This reverts commit ff25f694731f7b9fa33f2955e751f3ccb3c35afa.
Added:
Modified:
compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp b/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
index dffc8626189db..571b25966ea9f 100644
--- a/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
+++ b/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
@@ -1,4 +1,6 @@
+// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O0 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O2 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
More information about the llvm-commits
mailing list