diff options
Diffstat (limited to 'test/SemaObjC/property-12.m')
-rw-r--r-- | test/SemaObjC/property-12.m | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/test/SemaObjC/property-12.m b/test/SemaObjC/property-12.m index cd0fccf..c4a7555 100644 --- a/test/SemaObjC/property-12.m +++ b/test/SemaObjC/property-12.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -Wreadonly-setter-attrs -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -Wreadonly-setter-attrs -verify %s @protocol P0 @property(readonly,assign) id X; // expected-warning {{property attributes 'readonly' and 'assign' are mutually exclusive}} @@ -29,4 +29,39 @@ @end +// rdar://11656982 +@interface I0 <P0> @end +@implementation I0 +@synthesize X; +@end + +@interface I1 <P1> @end +@implementation I1 +@synthesize X; +@end + +@interface I2 <P2> @end +@implementation I2 +@synthesize X; +@end + +@interface I3 <P3> @end +@implementation I3 +@synthesize X; +@end + +@interface I4 <P4> @end +@implementation I4 +@synthesize X; +@end + +@interface I5 <P5> @end +@implementation I5 +@synthesize X; +@end + +@interface I6 <P6> @end +@implementation I6 +@synthesize X; +@end |