• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
19