Skip to content

Commit d22e268

Browse files
committed
check IR in this test.
llvm-svn: 196279
1 parent bc81c07 commit d22e268

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

clang/test/CodeGenCXX/constructor-conversion.cpp

Lines changed: 7 additions & 12 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 -std=c++11 -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 -std=c++11 -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 -std=c++11 -emit-llvm %s -o - | \
2+
// RUN: FileCheck %s
3+
// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
4+
// RUN: FileCheck %s
65

76
extern "C" int printf(...);
87

@@ -46,10 +45,6 @@ int main() {
4645
g(3); // g(X(3))
4746
}
4847

49-
// CHECK-LP64: callq __ZN1XC1Ei
50-
// CHECK-LP64: callq __ZN1XC1EPKci
51-
// CHECK-LP64: callq __ZN1XC1Ev
52-
53-
// CHECK-LP32: calll L__ZN1XC1Ei
54-
// CHECK-LP32: calll L__ZN1XC1EPKci
55-
// CHECK-LP32: calll L__ZN1XC1Ev
48+
// CHECK: call void @_ZN1XC1Ei
49+
// CHECK: call void @_ZN1XC1EPKci
50+
// CHECK: call void @_ZN1XC1Ev

0 commit comments

Comments
 (0)