OSDN Git Service

PR c++/54325
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / error10.C
index d802580..5c17277 100644 (file)
@@ -6,10 +6,10 @@ template<int> struct A {};
 
 template<int N>
 void foo(const A<N> &a)
-{ -A<N>(a); } // { dg-error "\\(\\(const A<0>\\*\\)a\\)" "" }
+{ -A<N>(a); } // { dg-error "\\(\\* & a\\)" "" }
 
 void bar()
 {
-    foo(A<0>()); // { dg-error "instantiated from here" "" }
+    foo(A<0>()); // { dg-message "required from here" "" }
 }