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