blob: fc99c15fd379d8a5197c64195b40b41c7364a4e4 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
Douglas Gregord7174f22010-04-19 19:10:40 +00002@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