summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/objc2-retain-codegen.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/objc2-retain-codegen.m')
-rw-r--r--clang/test/CodeGenObjC/objc2-retain-codegen.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/objc2-retain-codegen.m b/clang/test/CodeGenObjC/objc2-retain-codegen.m
new file mode 100644
index 0000000..d5b473e
--- /dev/null
+++ b/clang/test/CodeGenObjC/objc2-retain-codegen.m
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fobjc-fragile-abi -fobjc-gc-only -emit-llvm -o %t %s
+// RUN: %clang_cc1 -x objective-c++ -triple x86_64-unknown-unknown -fobjc-fragile-abi -fobjc-gc-only -emit-llvm -o %t %s
+
+@interface I0 {
+ I0 *_f0;
+}
+@property (retain) id p0;
+@end
+
+@implementation I0
+ @synthesize p0 = _f0;
+@end
+