blob: b648ee939dbed6397ca342c7937e2440fd4d3fca [file] [log] [blame]
Fariborz Jahanian0337f212009-07-07 18:50:52 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
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}