1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // Test that a property can be synthesize in a category
3 // implementation with no error.
6 @property float myFloat;
7 @property float anotherFloat; // expected-warning {{property 'anotherFloat' requires method 'anotherFloat' to be defined - use @dynamic}} \
8 // expected-warning {{property 'anotherFloat' requires method 'setAnotherFloat:' to be defined }}
11 @interface MyObject { float anotherFloat; }
14 @interface MyObject (CAT) <MyProtocol>
17 @implementation MyObject (CAT) // expected-note 2 {{implementation is here}}
18 @dynamic myFloat; // OK
19 @synthesize anotherFloat; // expected-error {{@synthesize not allowed in a category's implementation}}