diff options
Diffstat (limited to 'test/SemaObjC/method-undef-category-warn-1.m')
-rw-r--r-- | test/SemaObjC/method-undef-category-warn-1.m | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/SemaObjC/method-undef-category-warn-1.m b/test/SemaObjC/method-undef-category-warn-1.m index b367801242e5..532ecfca9e08 100644 --- a/test/SemaObjC/method-undef-category-warn-1.m +++ b/test/SemaObjC/method-undef-category-warn-1.m @@ -4,23 +4,25 @@ @end @protocol P -- (void) Pmeth; // expected-warning {{method in protocol not implemented [-Wprotocol]}} -- (void) Pmeth1; // expected-warning {{method in protocol not implemented [-Wprotocol]}} +- (void) Pmeth; // expected-note {{method declared here }} +- (void) Pmeth1; // expected-note {{method declared here }} @end @interface MyClass1(CAT) <P> // expected-note {{required for direct or indirect protocol 'P'}} - (void) meth2; // expected-note {{method definition for 'meth2' not found}} @end -@implementation MyClass1(CAT) // expected-warning {{incomplete implementation}} +@implementation MyClass1(CAT) // expected-warning {{incomplete implementation}} \ + // expected-warning {{method in protocol not implemented [-Wprotocol]}} - (void) Pmeth1{} @end @interface MyClass1(DOG) <P> // expected-note {{required for direct or indirect protocol 'P'}} -- (void)ppp; // expected-note {{method definition for 'ppp' not found}} +- (void)ppp; // expected-note {{method definition for 'ppp' not found}} @end -@implementation MyClass1(DOG) // expected-warning {{incomplete implementation}} +@implementation MyClass1(DOG) // expected-warning {{incomplete implementation}} \ + // expected-warning {{method in protocol not implemented [-Wprotocol]}} - (void) Pmeth {} @end |