Index: gcc/gcc/testsuite/objc.dg/method-11.m |
diff --git a/gcc/gcc/testsuite/objc.dg/method-11.m b/gcc/gcc/testsuite/objc.dg/method-11.m |
index 5921292c1ba2ee806d49a0c3daac3d3e3a3b34ed..ddd0121b0d51f63fa4a4004dc8a81c32393e5348 100644 |
--- a/gcc/gcc/testsuite/objc.dg/method-11.m |
+++ b/gcc/gcc/testsuite/objc.dg/method-11.m |
@@ -24,9 +24,9 @@ void foo(void) { |
id obj1, obj2 = 0; |
obj2 = [obj1 initWithData: obj2]; |
/* { dg-warning "multiple methods named .\\-initWithData:. found" "" { target *-*-* } 25 } */ |
- /* { dg-warning "using .\\-\\(void\\)initWithData:\\(Object1 \\*\\)data." "" { target *-*-* } 12 } */ |
- /* { dg-warning "also found .\\-\\(id\\)initWithData:\\(Object1 \\*\\)data." "" { target *-*-* } 16 } */ |
- /* { dg-warning "also found .\\-\\(id\\)initWithData:\\(Object2 \\*\\)data." "" { target *-*-* } 20 } */ |
+ /* { dg-message "using .\\-\\(void\\)initWithData:\\(Object1 \\*\\)data." "" { target *-*-* } 12 } */ |
+ /* { dg-message "also found .\\-\\(id\\)initWithData:\\(Object1 \\*\\)data." "" { target *-*-* } 16 } */ |
+ /* { dg-message "also found .\\-\\(id\\)initWithData:\\(Object2 \\*\\)data." "" { target *-*-* } 20 } */ |
/* The following error is a consequence of picking the "wrong" method signature. */ |
/* { dg-error "void value not ignored as it ought to be" "" { target *-*-* } 25 } */ |