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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
union4.C
blob
26f12e953c1c77d99a4434d750a7a353944e7948
1
// { dg-do assemble }
2
// { dg-options "" }
3
// Origin: Mark Mitchell <mark@codesourcery.com>
4
5
union A
6
{
7
int i;
8
int j;
9
10
A () : i (3), j (2) {} // { dg-error "" } multiple initializations
11
};
12
13
union B
14
{
15
int i;
16
union {
17
int j;
18
};
19
20
B () : i (3), j (2) {} // { dg-error "" } multiple initializations
21
};
22
23
union C
24
{
25
union {
26
struct {
27
int i;
28
int j;
29
};
30
};
31
32
C () : i (3), j (2) {}
33
};