StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / SemaObjC / method-undef-category-warn-1.m
blob532ecfca9e0827e098b37111463c3d3a8e512582
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface MyClass1
4 @end
6 @protocol P
7 - (void) Pmeth;   // expected-note {{method declared here }}
8 - (void) Pmeth1;    // expected-note {{method declared here }}
9 @end
11 @interface MyClass1(CAT) <P> // expected-note {{required for direct or indirect protocol 'P'}}
12 - (void) meth2;  // expected-note {{method definition for 'meth2' not found}}
13 @end
15 @implementation MyClass1(CAT) // expected-warning {{incomplete implementation}}  \
16                                 // expected-warning {{method in protocol not implemented [-Wprotocol]}}
17 - (void) Pmeth1{}
18 @end
20 @interface MyClass1(DOG) <P> // expected-note {{required for direct or indirect protocol 'P'}}
21 - (void)ppp;    // expected-note {{method definition for 'ppp' not found}} 
22 @end
24 @implementation MyClass1(DOG) // expected-warning {{incomplete implementation}} \
25                 // expected-warning {{method in protocol not implemented [-Wprotocol]}}
26 - (void) Pmeth {}
27 @end
29 @implementation MyClass1(CAT1)
30 @end