aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/iboutlet.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/iboutlet.m')
-rw-r--r--test/SemaObjC/iboutlet.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/SemaObjC/iboutlet.m b/test/SemaObjC/iboutlet.m
index 13e5d53bb0..c9f5d8cf2a 100644
--- a/test/SemaObjC/iboutlet.m
+++ b/test/SemaObjC/iboutlet.m
@@ -2,6 +2,8 @@
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -verify %s
// rdar://11448209
+#define READONLY readonly
+
@class NSView;
#define IBOutlet __attribute__((iboutlet))
@@ -9,7 +11,13 @@
@interface I
@property (getter = MyGetter, readonly, assign) IBOutlet NSView *myView; // expected-note {{property declared here}} \
// expected-note {{readonly IBOutlet property should be changed to be readwrite}}
+
+@property (readonly) IBOutlet NSView *myView1; // expected-note {{readonly IBOutlet property should be changed to be readwrite}} \
+ // expected-note {{property declared here}}
+
+@property (getter = MyGetter, READONLY) IBOutlet NSView *myView2; // expected-note {{property declared here}}
+
@end
-@implementation I // expected-warning {{readonly IBOutlet property when auto-synthesized may not work correctly with 'nib' loader}}
+@implementation I // expected-warning 3 {{readonly IBOutlet property when auto-synthesized may not work correctly with 'nib' loader}}
@end