diff options
Diffstat (limited to 'test/SemaObjC/property.m')
-rw-r--r-- | test/SemaObjC/property.m | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/SemaObjC/property.m b/test/SemaObjC/property.m index 4d00bd2b522d9..7d1cb7a361603 100644 --- a/test/SemaObjC/property.m +++ b/test/SemaObjC/property.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -fsyntax-only -verify %s @interface I { @@ -11,8 +11,7 @@ @end @interface I(CAT) -@property int d1; // expected-warning {{property 'd1' requires method 'd1' to be defined }} \ - // expected-warning {{property 'd1' requires method 'setD1:' to be defined }} +@property int d1; // expected-note 2 {{property declared here}} @end @implementation I @@ -23,7 +22,8 @@ @synthesize name; // OK! property with same name as an accessible ivar of same name @end -@implementation I(CAT) // expected-note 2 {{implementation is here}} +@implementation I(CAT) // expected-warning {{property 'd1' requires method 'd1' to be defined }} \ + // expected-warning {{property 'd1' requires method 'setD1:' to be defined }} @synthesize d1; // expected-error {{@synthesize not allowed in a category's implementation}} @dynamic bad; // expected-error {{property implementation must have its declaration in the category 'CAT'}} @end @@ -63,3 +63,5 @@ typedef id BYObjectIdentifier; @property int treeController; // expected-error {{property has a previous declaration}} @end +// rdar://10127639 +@synthesize window; // expected-error {{missing context for property implementation declaration}} |