[compiler-rt] r240975 - [asan] Re-enable clang_gcc_abi test at higher opt levels.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon Jun 29 11:05:31 PDT 2015
Author: eugenis
Date: Mon Jun 29 13:05:31 2015
New Revision: 240975
URL: http://llvm.org/viewvc/llvm-project?rev=240975&view=rev
Log:
[asan] Re-enable clang_gcc_abi test at higher opt levels.
PR23971 is fixed.
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc?rev=240975&r1=240974&r2=240975&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc Mon Jun 29 13:05:31 2015
@@ -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
}
More information about the llvm-commits
mailing list