]> granicus.if.org Git - clang/commitdiff
Check IR on this test.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Dec 2013 14:46:31 +0000 (14:46 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Dec 2013 14:46:31 +0000 (14:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196287 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/objc-read-weak-byref.m

index 35b4de1cec2efaacd048faedb82271c23f1c1152..228f4770892f28286eae83539029d3755d1c09d4 100644 (file)
@@ -1,8 +1,7 @@
-// REQUIRES: x86-registered-target,x86-64-registered-target
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
-// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s
-// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
+// RUN: FileCheck %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
+// RUN: FileCheck %s
 
 @interface NSObject 
 - copy;
@@ -19,8 +18,5 @@ int main() {
     return 0;
 }
 
-// CHECK-LP64: callq    _objc_read_weak
-// CHECK-LP64: callq    _objc_read_weak
-
-// CHECK-LP32: calll     L_objc_read_weak
-// CHECK-LP32: calll     L_objc_read_weak
+// CHECK: call i8* @objc_read_weak
+// CHECK: call i8* @objc_read_weak