diff options
Diffstat (limited to 'test/SemaObjC/property-category-2.m')
-rw-r--r-- | test/SemaObjC/property-category-2.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaObjC/property-category-2.m b/test/SemaObjC/property-category-2.m index f258b2c..e63672b 100644 --- a/test/SemaObjC/property-category-2.m +++ b/test/SemaObjC/property-category-2.m @@ -4,7 +4,8 @@ @protocol MyProtocol @property float myFloat; -@property float anotherFloat; +@property float anotherFloat; // expected-warning {{property 'anotherFloat' requires method 'anotherFloat' to be defined - use @dynamic}} \ + // expected-warning {{property 'anotherFloat' requires method 'setAnotherFloat:' to be defined }} @end @interface MyObject { float anotherFloat; } @@ -13,7 +14,7 @@ @interface MyObject (CAT) <MyProtocol> @end -@implementation MyObject (CAT) +@implementation MyObject (CAT) // expected-note 2 {{implementation is here}} @dynamic myFloat; // OK @synthesize anotherFloat; // expected-error {{@synthesize not allowed in a category's implementation}} @end |