[compiler-rt] r219200 - Fixed asan-asm-stacktrace-test.cc
Yuri Gorshenin
ygorshenin at google.com
Tue Oct 7 04:12:56 PDT 2014
Author: ygorshenin
Date: Tue Oct 7 06:12:55 2014
New Revision: 219200
URL: http://llvm.org/viewvc/llvm-project?rev=219200&view=rev
Log:
Fixed asan-asm-stacktrace-test.cc
Summary: Fixed asan-asm-stacktrace-test.cc. Now it's supported on x86_64 and added test run when no debug info is generated.
Differential Revision: http://reviews.llvm.org/D5547
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc?rev=219200&r1=219199&r2=219200&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc Tue Oct 7 06:12:55 2014
@@ -1,15 +1,19 @@
// Check that a stack unwinding algorithm works corretly even with the assembly
// instrumentation.
-// REQUIRES: x86_64-supported-target,i386-supported-target
+// REQUIRES: x86_64-supported-target
// RUN: %clangxx_asan -g -O1 %s -fno-inline-functions -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mllvm -asan-instrument-assembly -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -g -O1 %s -fno-inline-functions -fomit-frame-pointer -momit-leaf-frame-pointer -mllvm -asan-instrument-assembly -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -g0 -O1 %s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions -fno-inline-functions -fomit-frame-pointer -momit-leaf-frame-pointer -mllvm -asan-instrument-assembly -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-nounwind
#include <cstddef>
// CHECK: READ of size 4
-// CHECK: {{#0 0x[0-9a-fA-F]+ in foo}}
-// CHECK: {{#1 0x[0-9a-fA-F]+ in main}}
+// CHECK-NEXT: {{#0 0x[0-9a-fA-F]+ in foo}}
+// CHECK-NEXT: {{#1 0x[0-9a-fA-F]+ in main}}
+
+// CHECK-nounwind: READ of size 4
+// CHECK-nounwind-NEXT: {{#0 0x[0-9a-fA-F]+ in foo}}
__attribute__((noinline)) int foo(size_t n, int *buffer) {
int r;
More information about the llvm-commits
mailing list