summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2016-12-13 23:32:22 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2016-12-13 23:32:22 +0000
commit74f078955247a018730dd5d99b33eca94d0821dd (patch)
treec3c8dbe2edfeb2a3470facacdb6bc8795c1f7922 /clang/test
parentba17775c84ed1c029493ea12aaa3bdae01dd6712 (diff)
downloadbcm5719-llvm-74f078955247a018730dd5d99b33eca94d0821dd.tar.gz
bcm5719-llvm-74f078955247a018730dd5d99b33eca94d0821dd.zip
[CodeGen][ObjC] Emit objc_unsafeClaimAutoreleasedReturnValue for
fragile runtime too. Follow-up to r258962. rdar://problem/29269006 llvm-svn: 289615
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenObjC/arc-unsafeclaim.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/arc-unsafeclaim.m b/clang/test/CodeGenObjC/arc-unsafeclaim.m
index cda00b0a2f5..fd8215c2039 100644
--- a/clang/test/CodeGenObjC/arc-unsafeclaim.m
+++ b/clang/test/CodeGenObjC/arc-unsafeclaim.m
@@ -1,6 +1,9 @@
// Make sure it works on x86-64.
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime=macosx-10.11 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED
+// Make sure it works on x86-32.
+// RUN: %clang_cc1 -triple i386-apple-darwin11 -fobjc-runtime=macosx-fragile-10.11 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED -check-prefix=CHECK-MARKED
+
// Make sure it works on ARM.
// RUN: %clang_cc1 -triple arm64-apple-ios9 -fobjc-runtime=ios-9.0 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED -check-prefix=CHECK-MARKED
// RUN: %clang_cc1 -triple arm64-apple-ios9 -fobjc-runtime=ios-9.0 -fobjc-arc -O -disable-llvm-optzns -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-OPTIMIZED
OpenPOWER on IntegriCloud