OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/36628
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist12.C
1
// PR c++/38698
2
// { dg-options "-std=c++0x" }
3
4
struct A
5
{
6
int i;
7
};
8
9
A a({1,2}); // { dg-error "too many initializers" }
10
11
union U
12
{
13
int i,j;
14
};
15
16
U u({1,2}); // { dg-error "too many initializers" }
17
18
union V {};
19
20
V v({1}); // { dg-error "too many initializers" }