summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-06-29 18:05:31 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-06-29 18:05:31 +0000
commit17550a3687af0cf22a9de1fe9de366669de111a3 (patch)
tree1031faaed024a0132c99fdf22e64e254bac65cf2
parent6adc5c727f655efcad245f35cc6b7ea536ba1ff2 (diff)
downloadcompiler-rt-17550a3687af0cf22a9de1fe9de366669de111a3.tar.gz
[asan] Re-enable clang_gcc_abi test at higher opt levels.
PR23971 is fixed. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240975 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/asan/TestCases/Linux/clang_gcc_abi.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/asan/TestCases/Linux/clang_gcc_abi.cc b/test/asan/TestCases/Linux/clang_gcc_abi.cc
index 831527f72..669d15240 100644
--- a/test/asan/TestCases/Linux/clang_gcc_abi.cc
+++ b/test/asan/TestCases/Linux/clang_gcc_abi.cc
@@ -1,17 +1,17 @@
// RUN: %clangxx_asan -O0 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
-
-// __attribute__((naked)) is broken at high optimization levels
-// Only testing -O0.
-// https://llvm.org/bugs/show_bug.cgi?id=23971
+// RUN: %clangxx_asan -O1 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
// REQUIRES: arm-supported-target
// XFAIL: armv7l-unknown-linux-gnueabihf
#include <stdlib.h>
+__attribute__((noinline))
int boom() {
volatile int three = 3;
- char *s = (char *)malloc(three);
+ char * volatile s = (char *)malloc(three);
// CHECK: #1 0x{{.*}} in boom {{.*}}clang_gcc_abi.cc:[[@LINE-1]]
return s[three]; //BOOM
}