24 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2 3@interface AddressMyProperties 4{5 unsigned index;6}7@property unsigned index;8@end9 10@implementation AddressMyProperties11@synthesize index;12@end13 14int main(void) {15 AddressMyProperties *object;16 &object.index; // expected-error {{address of property expression requested}}17 return 0;18}19 20typedef int Foo;21void test(void) {22 Foo.x; // expected-error {{expected identifier or '('}}23}24