blob: 6b5cf047dc171ad94a65ab8f189b5110323f10f0 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian0337f212009-07-07 18:50:52 +00002
3@interface AddressMyProperties
4{
5 unsigned index;
6}
7@property unsigned index;
8@end
9
10@implementation AddressMyProperties
11@synthesize index;
12@end
13
14int main() {
15 AddressMyProperties *object;
16 &object.index; // expected-error {{address of property expression requested}}
17 return 0;
18}
Fariborz Jahanian8149a572010-03-22 21:02:34 +000019
20typedef int Foo;
21void test() {
22 Foo.x; // expected-error {{expected identifier or '('}}
23}