| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| typedef struct { int y; } Abstract; |
| typedef struct { int x; } Alternate; |
| #define INTERFERE_TYPE Alternate* |
| @property Abstract *x; // expected-note {{using}} |
| @property Abstract *y; // expected-note {{using}} |
| @property Abstract *z; // expected-note {{using}} |
| @interface InterferencePre |
| -(void) x; // expected-note {{also found}} |
| -(void) y; // expected-note {{also found}} |
| -(void) z; // expected-note {{also found}} |
| -(void) setX: (INTERFERE_TYPE) arg; |
| -(void) setY: (INTERFERE_TYPE) arg; |
| -(void) setZ: (INTERFERE_TYPE) arg; |
| Abstract *l = [a0 x]; // expected-warning {{multiple methods named 'x' found}} |
| Abstract *l = [a0 y]; // expected-warning {{multiple methods named 'y' found}} |
| Abstract *l = [a0 z]; // expected-warning {{multiple methods named 'z' found}} |
| void f3(id a0, Abstract *a1) { |
| void f4(id a0, Abstract *a1) { |
| void f5(id a0, Abstract *a1) { |