From 95f3636c4659cc370716e4fbc93ab8d911e94123 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 3 Feb 2013 12:52:54 +0000 Subject: [PATCH] clang/test/CodeGenCXX/debug-info-class.cpp: Tweak to unbreak test for a few targets. - Relax a expression for arm-gnueabi. - Exclude msvc to limit target triplets to add limited a few targets. Feel free to remove actions if guys thought they redundant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174278 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/debug-info-class.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/CodeGenCXX/debug-info-class.cpp b/test/CodeGenCXX/debug-info-class.cpp index 2f81436bcf..df2492603e 100644 --- a/test/CodeGenCXX/debug-info-class.cpp +++ b/test/CodeGenCXX/debug-info-class.cpp @@ -1,4 +1,3 @@ -// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s struct foo; void func(foo *f) { } @@ -8,6 +7,7 @@ void func(bar *f) { union baz; void func(baz *f) { } + class B { public: virtual ~B(); @@ -30,7 +30,11 @@ int main(int argc, char **argv) { return 0; } -// CHECK: invoke void @_ZN1BD1Ev(%class.B* %b) +// RUN: %clang -target x86_64-unknown_unknown -emit-llvm -g -S %s -o - | FileCheck %s +// RUN: %clang -target i686-cygwin -emit-llvm -g -S %s -o - | FileCheck %s +// RUN: %clang -target armv7l-unknown-linux-gnueabihf -emit-llvm -g -S %s -o - | FileCheck %s + +// CHECK: invoke {{.+}} @_ZN1BD1Ev(%class.B* %b) // CHECK-NEXT: unwind label %{{.+}}, !dbg ![[EXCEPTLOC:.*]] // CHECK: store i32 0, i32* %{{.+}}, !dbg ![[RETLOC:.*]] // CHECK: DW_TAG_structure_type ] [foo] -- 2.40.0