summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/no-gc-weak-test.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/no-gc-weak-test.m')
-rw-r--r--test/SemaObjC/no-gc-weak-test.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/SemaObjC/no-gc-weak-test.m b/test/SemaObjC/no-gc-weak-test.m
new file mode 100644
index 0000000..f494929
--- /dev/null
+++ b/test/SemaObjC/no-gc-weak-test.m
@@ -0,0 +1,28 @@
+// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
+
+@interface Subtask
+{
+ id _delegate;
+}
+@property(nonatomic,readwrite,assign) id __weak delegate;
+@end
+
+@implementation Subtask
+@synthesize delegate = _delegate;
+@end
+
+
+@interface PVSelectionOverlayView2
+{
+ id __weak _selectionRect;
+}
+
+@property(assign) id selectionRect;
+
+@end
+
+@implementation PVSelectionOverlayView2
+
+@synthesize selectionRect = _selectionRect;
+@end
+
OpenPOWER on IntegriCloud