Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 573acde | 2009-01-17 23:21:10 +0000 | [diff] [blame] | 2 | |
| 3 | @interface MyClass { |
| 4 | |
| 5 | }; |
| 6 | @property unsigned char bufferedUTF8Bytes[4]; // expected-error {{property cannot have array or function type}} |
| 7 | @property unsigned char bufferedUTFBytes:1; // expected-error {{property name cannot be a bitfield}} |
Fariborz Jahanian | e0097db | 2010-02-15 22:20:11 +0000 | [diff] [blame] | 8 | @property(nonatomic, retain, setter=ab_setDefaultToolbarItems) MyClass *ab_defaultToolbarItems; // expected-error {{method name referenced in property setter attribute must end with ':'}} |
Fariborz Jahanian | 573acde | 2009-01-17 23:21:10 +0000 | [diff] [blame] | 9 | @end |
| 10 | |
| 11 | @implementation MyClass |
Fariborz Jahanian | e0097db | 2010-02-15 22:20:11 +0000 | [diff] [blame] | 12 | @dynamic ab_defaultToolbarItems; |
Fariborz Jahanian | 573acde | 2009-01-17 23:21:10 +0000 | [diff] [blame] | 13 | @end |
| 14 | |