diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/proto-hier-1.m')
-rw-r--r-- | gcc/testsuite/objc.dg/proto-hier-1.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/objc.dg/proto-hier-1.m b/gcc/testsuite/objc.dg/proto-hier-1.m index 17ea72e8db1..154e6b62d73 100644 --- a/gcc/testsuite/objc.dg/proto-hier-1.m +++ b/gcc/testsuite/objc.dg/proto-hier-1.m @@ -48,7 +48,9 @@ int foo(void) { id<Booing, Fooing> stupidVar; [stupidVar boo]; [stupidVar foo]; - [stupidVar anotherMsg]; /* { dg-warning "not implemented by protocol" } */ - /* { dg-warning "return type defaults to id" "" { target *-*-* } 51 } */ + [stupidVar anotherMsg]; /* { dg-warning ".\-anotherMsg. not implemented by protocol" } */ + /* { dg-warning "Messages without a matching method signature" "" { target *-*-* } 51 } */ + /* { dg-warning "will be assumed to return .id. and accept" "" { target *-*-* } 51 } */ + /* { dg-warning ".\.\.\.. as arguments" "" { target *-*-* } 51 } */ return 0; } |