1// RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s
2// expected-no-diagnostics
3// rdar://8225011
4
5int glob;
6
7@interface I
8@property int glob;
9@property int p;
10@property int le;
11@property int l;
12@property int ls;
13@property int r;
14@end
15
16// rdar://9027673
17// Warning on future name lookup rule is removed.
18@implementation I
19- (int) Meth { return glob; } // no warning
20@synthesize glob;
21// rdar://8248681
22- (int) Meth1: (int) p {
23  extern int le;
24  int l = 1;
25  static int ls;
26  register int r;
27  p = le + ls + r;
28  return l;
29}
30@dynamic p;
31@dynamic le;
32@dynamic l;
33@dynamic ls;
34@dynamic r;
35@end
36
37
38