Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Fariborz Jahanian | b7f95f5 | 2009-03-02 19:05:07 +0000 | [diff] [blame] | 2 | |
| 3 | @interface Foo |
| 4 | - (int) garf; // expected-note {{ previous declaration is here}} |
| 5 | - (int) OK; |
| 6 | + (int) cgarf; // expected-note {{ previous declaration is here}} |
| 7 | - (int) InstMeth; |
| 8 | @end |
| 9 | |
| 10 | @interface Foo() |
| 11 | - (void) garf; // expected-error {{duplicate declaration of method 'garf'}} |
| 12 | + (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}} |
| 13 | + (int) InstMeth; |
| 14 | - (int) OK; |
| 15 | @end |