brintos

brintos / llvm-project-archived public Read only

0
0
Text · 393 B · d99e617 Raw
20 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3@interface Ivar4- (float*)method;5@end6 7@interface A {8  A *Ivar;9}10- (int*)method;11@end12 13@implementation A14- (int*)method {15  int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar.16                           // Note that Objective-C calls Ivar's method.17  return 0;18}19@end20