summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/arc-no-runtime.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/arc-no-runtime.m')
-rw-r--r--test/SemaObjC/arc-no-runtime.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaObjC/arc-no-runtime.m b/test/SemaObjC/arc-no-runtime.m
new file mode 100644
index 0000000..94299e2
--- /dev/null
+++ b/test/SemaObjC/arc-no-runtime.m
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fobjc-arc -fobjc-nonfragile-abi -verify %s
+
+// rdar://problem/9150784
+void test(void) {
+ __weak id x; // expected-error {{the current deployment target does not support automated __weak references}}
+}
+
+@interface A
+@property (weak) id testObjectWeakProperty; // expected-note {{declared here}}
+@end
+
+@implementation A
+// rdar://9605088
+@synthesize testObjectWeakProperty; // expected-error {{the current deployment target does not support automated __weak references}}
+@end
OpenPOWER on IntegriCloud