Index: gcc/gcc/testsuite/objc.dg/method-6.m |
diff --git a/gcc/gcc/testsuite/objc.dg/method-6.m b/gcc/gcc/testsuite/objc.dg/method-6.m |
index aa94bac67751aae40dfa42e5e00b1b400bec5127..c46d9c450e770fddbeab82e48659bd3a9365b8f4 100644 |
--- a/gcc/gcc/testsuite/objc.dg/method-6.m |
+++ b/gcc/gcc/testsuite/objc.dg/method-6.m |
@@ -4,7 +4,7 @@ |
/* { dg-do compile } */ |
/* { dg-options "-Wstrict-selector-match" } */ |
-#include <objc/Protocol.h> |
+#include "../objc-obj-c++-shared/Protocol1.h" |
@interface Base |
- (unsigned)port; |
@@ -20,8 +20,8 @@ void foo(void) { |
Class receiver; |
[receiver port]; /* { dg-warning "multiple methods named .\\+port. found" } */ |
- /* { dg-warning "using .\\-\\(unsigned( int)?\\)port." "" { target *-*-* } 10 } */ |
- /* { dg-warning "also found .\\+\\(Protocol \\*\\)port." "" { target *-*-* } 15 } */ |
+ /* { dg-message "using .\\-\\(unsigned( int)?\\)port." "" { target *-*-* } 10 } */ |
+ /* { dg-message "also found .\\+\\(Protocol \\*\\)port." "" { target *-*-* } 15 } */ |
[receiver starboard]; /* { dg-warning "no .\\+starboard. method found" } */ |
/* { dg-warning "Messages without a matching method signature" "" { target *-*-* } 26 } */ |