repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist12.C
blob
f344c780cc25cfe3a0696de942f6979184d594c5
1
// PR c++/38698
2
// { dg-options "-std=c++0x" }
3
// { dg-prune-output "note" }
4
5
struct A
6
{
7
int i;
8
};
9
10
A a({1,2}); // { dg-error "no match" }
11
12
union U
13
{
14
int i,j;
15
};
16
17
U u({1,2}); // { dg-error "no match" }
18
19
union V {};
20
21
V v({1}); // { dg-error "no match" }