| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| @interface class1 : SUPER |
| - (int) meth; // expected-note {{previous declaration is here}} |
| - (int*) meth; // expected-error {{duplicate declaration of method 'meth'}} |
| - (int) catm : (char)ch1; // expected-note {{previous declaration is here}} |
| - (int) catm1 : (char)ch : (int)i; |
| - (int) catm : (char*)ch1; // expected-error {{duplicate declaration of method 'catm:'}} |
| + (int) catm1 : (char)ch : (int)i; |
| + (int) catm1 : (char)ch : (int)i; // expected-note {{previous declaration is here}} |
| + (T*) meth1; // expected-note {{previous declaration is here}} |
| + (int) catm1 : (char)ch : (int*)i; // expected-error {{duplicate declaration of method 'catm1::'}} |
| + (T**) meth1; // expected-error {{duplicate declaration of method 'meth1'}} |
| - (int) meth; // expected-note {{previous declaration is here}} |
| - (int*) meth; // expected-error {{duplicate declaration of method 'meth'}} |