OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / overload / builtin1.C
index 9f66e33..652b8e1 100644 (file)
@@ -7,10 +7,11 @@ struct A {
   operator B ();
 };
 
-void operator+ (B, B);         // { dg-error "" "candidate" }
+void operator+ (B, B);         // { dg-message "operator" "operator" }
 
 int main ()
 {
   A a;
-  a + a;                       // { dg-error "" "ambiguous" }
+  a + a;                       // { dg-error "ambiguous" "ambiguous" }
+                                // { dg-message "candidates" "candidates" { target *-*-* } 15 }
 }