1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc// rdar://8843851 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambucint* global; 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@interface I 8*f4a2713aSLionel Sambuc- (void) Meth; 9*f4a2713aSLionel Sambuc@property int prop; 10*f4a2713aSLionel Sambuc@property int prop1; 11*f4a2713aSLionel Sambuc@end 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc@implementation I 14*f4a2713aSLionel Sambuc+ (void) _defaultMinSize { }; 15*f4a2713aSLionel Sambucstatic void _initCommon() { 16*f4a2713aSLionel Sambuc Class graphicClass; 17*f4a2713aSLionel Sambuc [graphicClass _defaultMinSize]; 18*f4a2713aSLionel Sambuc} 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc- (void) Meth { [self Forw]; } // No warning now 21*f4a2713aSLionel Sambuc- (void) Forw {} 22*f4a2713aSLionel Sambuc- (int) func { return prop; } // compiles - synthesized ivar will be accessible here. 23*f4a2713aSLionel Sambuc- (int)get_g { return global; } // No warning here - synthesized ivar will be accessible here. 24*f4a2713aSLionel Sambuc@synthesize prop; 25*f4a2713aSLionel Sambuc@synthesize prop1=global; 26*f4a2713aSLionel Sambuc@end 27