Skip to content

Commit a6d47ae

Browse files
committed
Check IR on this test.
llvm-svn: 196287
1 parent 623a911 commit a6d47ae

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
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 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
3-
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
4-
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s
5-
// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
1+
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
2+
// RUN: FileCheck %s
3+
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
4+
// RUN: FileCheck %s
65

76
@interface NSObject
87
- copy;
@@ -19,8 +18,5 @@ int main() {
1918
return 0;
2019
}
2120

22-
// CHECK-LP64: callq _objc_read_weak
23-
// CHECK-LP64: callq _objc_read_weak
24-
25-
// CHECK-LP32: calll L_objc_read_weak
26-
// CHECK-LP32: calll L_objc_read_weak
21+
// CHECK: call i8* @objc_read_weak
22+
// CHECK: call i8* @objc_read_weak

0 commit comments

Comments
 (0)