]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fix tests
authorJason Merrill <jason@gcc.gnu.org>
Sat, 3 Jan 2009 00:27:19 +0000 (19:27 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 3 Jan 2009 00:27:19 +0000 (19:27 -0500)
From-SVN: r143026

gcc/testsuite/g++.dg/cpp0x/initlist11.C
gcc/testsuite/g++.dg/cpp0x/initlist12.C

index 789afc075562c664bb59d5293978984228a2988b..546a5335f1a20de2efa1959871ba1dea480f9ff3 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/38684
+// { dg-options "-std=c++0x" }
 
 #include <initializer_list>
 
index f3329d9b63ec1e08328684666e39eafecf1cf082..54349bf9feffc163d880368fd8bb293b8c8e7ae5 100644 (file)
@@ -1,15 +1,16 @@
 // PR c++/38698
+// { dg-options "-std=c++0x" }
 
 struct A
 {
   int i;
 };
 
-A a({1,2});
+A a({1,2});                    // { dg-error "too many initializers" }
 
 union U
 {
   int i,j;
 };
 
-U u({1,2});
+U u({1,2});                    // { dg-error "too many initializers" }