Skip to content

Commit 6ffd88d

Browse files
committed
Check IR on this test.
llvm-svn: 196284
1 parent 1b16e27 commit 6ffd88d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

clang/test/CodeGenCXX/decl-ref-init.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// REQUIRES: x86-registered-target,x86-64-registered-target
2-
// RUN: %clang_cc1 -triple x86_64-apple-darwin -S %s -o %t-64.s
3-
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
4-
// RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s
5-
// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
1+
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | \
2+
// RUN: FileCheck %s
3+
// RUN: %clang_cc1 -triple i386-apple-darwin -emit-llvm %s -o - | \
4+
// RUN: FileCheck %s
65

76
struct A {};
87

@@ -24,8 +23,5 @@ int main() {
2423
const A& rca2 = d();
2524
}
2625

27-
// CHECK-LP64: callq __ZN1BcvR1AEv
28-
// CHECK-LP64: callq __ZN1BcvR1AEv
29-
30-
// CHECK-LP32: calll L__ZN1BcvR1AEv
31-
// CHECK-LP32: calll L__ZN1BcvR1AEv
26+
// CHECK: call %struct.A* @_ZN1BcvR1AEv
27+
// CHECK: call %struct.A* @_ZN1BcvR1AEv

0 commit comments

Comments
 (0)