Skip to content

Commit 8dcdca6

Browse files
committed
Check IR on this test.
llvm-svn: 196282
1 parent aec96b8 commit 8dcdca6

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

clang/test/CodeGenCXX/convert-to-fptr.cpp

Lines changed: 6 additions & 11 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

@@ -39,9 +38,5 @@ int main()
3938
return 0;
4039
}
4140

42-
// CHECK-LP64: callq __ZN1AcvPFiiEEv
43-
// CHECK-LP64: callq __ZN1BcvRFiiEEv
44-
45-
// CHECK-LP32: calll L__ZN1AcvPFiiEEv
46-
// CHECK-LP32: calll L__ZN1BcvRFiiEEv
47-
41+
// CHECK: call i32 (i32)* (%struct.A*)* @_ZN1AcvPFiiEEv
42+
// CHECK: call i32 (i32)* (%struct.B*)* @_ZN1BcvRFiiEEv

0 commit comments

Comments
 (0)