diff options
Diffstat (limited to 'clang/test/Sema/method-undefined-warn-1.m')
| -rw-r--r-- | clang/test/Sema/method-undefined-warn-1.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/Sema/method-undefined-warn-1.m b/clang/test/Sema/method-undefined-warn-1.m index 0e4e6a11728..9e646f82f73 100644 --- a/clang/test/Sema/method-undefined-warn-1.m +++ b/clang/test/Sema/method-undefined-warn-1.m @@ -3,12 +3,12 @@ @interface INTF - (void) meth; - (void) meth : (int) arg1; -- (int) int_meth; // expected-warning {{method definition for 'int_meth' not found}} -+ (int) cls_meth; // expected-warning {{method definition for 'cls_meth' not found}} -+ (void) cls_meth1 : (int) arg1; // expected-warning {{method definition for 'cls_meth1:' not found}} +- (int) int_meth; ++ (int) cls_meth; ++ (void) cls_meth1 : (int) arg1; @end -@implementation INTF // expected-warning {{incomplete implementation of class 'INTF'}} +@implementation INTF // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}} - (void) meth {} - (void) meth : (int) arg2{} - (void) cls_meth1 : (int) arg2{} @@ -17,12 +17,12 @@ @interface INTF1 - (void) meth; - (void) meth : (int) arg1; -- (int) int_meth; // expected-warning {{method definition for 'int_meth' not found}} -+ (int) cls_meth; // expected-warning {{method definition for 'cls_meth' not found}} -+ (void) cls_meth1 : (int) arg1; // expected-warning {{method definition for 'cls_meth1:' not found}} +- (int) int_meth; ++ (int) cls_meth; ++ (void) cls_meth1 : (int) arg1; @end -@implementation INTF1 // expected-warning {{incomplete implementation of class 'INTF1'}} +@implementation INTF1 // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}} - (void) meth {} - (void) meth : (int) arg2{} - (void) cls_meth1 : (int) arg2{} |

