1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc@interface Ivar 4*f4a2713aSLionel Sambuc- (float*)method; 5*f4a2713aSLionel Sambuc@end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@interface A { 8*f4a2713aSLionel Sambuc A *Ivar; 9*f4a2713aSLionel Sambuc} 10*f4a2713aSLionel Sambuc- (int*)method; 11*f4a2713aSLionel Sambuc@end 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc@implementation A 14*f4a2713aSLionel Sambuc- (int*)method { 15*f4a2713aSLionel Sambuc int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar. 16*f4a2713aSLionel Sambuc // Note that Objective-C calls Ivar's method. 17*f4a2713aSLionel Sambuc return 0; 18*f4a2713aSLionel Sambuc} 19*f4a2713aSLionel Sambuc@end 20