blob: bb26f48f13d5b92e20f088b876b51a5dfeac89ad [file] [log] [blame]
Douglas Gregord7174f22010-04-19 19:10:40 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2@interface Ivar
3- (float*)method;
4@end
5
6@interface A {
7 A *Ivar;
8}
9- (int*)method;
10@end
11
12@implementation A
13- (int*)method {
14 int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar.
15 // Note that Objective-C calls Ivar's method.
16 return 0;
17}
18@end