summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-06-26 23:40:27 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-06-26 23:40:27 +0000
commitd650935bfb57ee613d9cbd51b86dff1a5d563315 (patch)
treeececb4ab6164af0bc7de58ac81d34a60942f0a04
parentfae81fc05726af91f4caa20ff521158127c09480 (diff)
downloadcompiler-rt-d650935bfb57ee613d9cbd51b86dff1a5d563315.tar.gz
[asan] Disable -O1,-O2,-O3 in clang_gcc_abi.cc test.
A workaround for PR23971. Fixes the test on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240855 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/asan/TestCases/Linux/clang_gcc_abi.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/asan/TestCases/Linux/clang_gcc_abi.cc b/test/asan/TestCases/Linux/clang_gcc_abi.cc
index e83388166..831527f72 100644
--- a/test/asan/TestCases/Linux/clang_gcc_abi.cc
+++ b/test/asan/TestCases/Linux/clang_gcc_abi.cc
@@ -1,7 +1,8 @@
// RUN: %clangxx_asan -O0 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
-// 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
+
+// __attribute__((naked)) is broken at high optimization levels
+// Only testing -O0.
+// https://llvm.org/bugs/show_bug.cgi?id=23971
// REQUIRES: arm-supported-target
// XFAIL: armv7l-unknown-linux-gnueabihf