StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / SemaObjCXX / overload-1.mm
blobfc17ca2be98d0da8338cb2391a73d41b273cceb7
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @protocol Proto1 @end
5 @protocol Proto2 @end
7 void f(id<Proto1> *) { }                // expected-note {{previous definition is here}}
9 void f(id<Proto1, Proto2> *) { }        // expected-error {{conflicting types for 'f'}}
11 void f(Class<Proto1> *) { }             // expected-note {{previous definition is here}}
13 void f(Class<Proto1, Proto2> *) { }     // expected-error {{conflicting types for 'f'}}
15 @interface I @end
17 void f(I<Proto1> *) { }         // expected-note {{previous definition is here}}
19 void f(I<Proto1, Proto2> *) { }         // expected-error {{conflicting types for 'f'}}
21 @interface I1 @end
23 void f1(I<Proto1> *) { }
25 void f1(I1<Proto1, Proto2> *) { }