Commit 0ede37fe by Jason Merrill

fix tests

From-SVN: r143026
parent fc94bfc5
// PR c++/38684 // PR c++/38684
// { dg-options "-std=c++0x" }
#include <initializer_list> #include <initializer_list>
......
// PR c++/38698 // PR c++/38698
// { dg-options "-std=c++0x" }
struct A struct A
{ {
int i; int i;
}; };
A a({1,2}); A a({1,2}); // { dg-error "too many initializers" }
union U union U
{ {
int i,j; int i,j;
}; };
U u({1,2}); U u({1,2}); // { dg-error "too many initializers" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment