fix tests
From-SVN: r143026
This commit is contained in:
parent
fc94bfc598
commit
0ede37fed4
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
// PR c++/38684
|
||||
// { dg-options "-std=c++0x" }
|
||||
|
||||
#include <initializer_list>
|
||||
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Add table
Reference in a new issue