OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / auto3.C
index 769d987..f792c07 100644 (file)
@@ -7,7 +7,7 @@ auto x;                         // { dg-error "auto" }
 
 // If the type deduced for the template parameter U is not the same in each
 // deduction, the program is ill-formed.
-auto i = 42, j = 42.0;         // { dg-error "" "" { xfail *-*-* } }
+auto i = 42, j = 42.0;         // { dg-error "auto" }
 
 // New CWG issue
 auto a[2] = { 1, 2 };          // { dg-error "auto" }
@@ -17,7 +17,7 @@ struct A { };
 
 A<int> A1;
 // CWG issue 625
-A<auto> A2 = A1;               // { dg-error "auto" }
+A<auto> A2 = A1;               // { dg-error "" }
 
 auto foo() { }                 // { dg-error "auto" }