2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2010-11-09 10:16:57 +08:00
|
|
|
// rdar://8225011
|
2010-07-23 07:33:21 +08:00
|
|
|
|
2011-02-22 01:31:28 +08:00
|
|
|
int glob;
|
2010-07-23 07:33:21 +08:00
|
|
|
|
|
|
|
@interface I
|
2011-02-22 01:31:28 +08:00
|
|
|
@property int glob;
|
2010-07-30 00:53:53 +08:00
|
|
|
@property int p;
|
|
|
|
@property int le;
|
|
|
|
@property int l;
|
|
|
|
@property int ls;
|
|
|
|
@property int r;
|
2010-07-23 07:33:21 +08:00
|
|
|
@end
|
|
|
|
|
2011-02-22 01:31:28 +08:00
|
|
|
// rdar://9027673
|
|
|
|
// Warning on future name lookup rule is removed.
|
2010-07-23 07:33:21 +08:00
|
|
|
@implementation I
|
2011-07-22 09:06:53 +08:00
|
|
|
- (int) Meth { return glob; } // no warning
|
2011-08-02 06:39:49 +08:00
|
|
|
@synthesize glob;
|
2010-11-09 10:16:57 +08:00
|
|
|
// rdar://8248681
|
2010-07-30 00:53:53 +08:00
|
|
|
- (int) Meth1: (int) p {
|
|
|
|
extern int le;
|
|
|
|
int l = 1;
|
|
|
|
static int ls;
|
|
|
|
register int r;
|
|
|
|
p = le + ls + r;
|
|
|
|
return l;
|
|
|
|
}
|
2011-08-02 06:39:49 +08:00
|
|
|
@dynamic p;
|
|
|
|
@dynamic le;
|
|
|
|
@dynamic l;
|
|
|
|
@dynamic ls;
|
|
|
|
@dynamic r;
|
2010-07-23 07:33:21 +08:00
|
|
|
@end
|
2010-07-30 00:53:53 +08:00
|
|
|
|
|
|
|
|