]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.other/union4.C
spec4.C: Remove stray semicolon.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.other / union4.C
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3 // Special g++ Options:
4
5 union A
6 {
7 int i;
8 int j;
9
10 A () : i (3), j (2) {} // 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) {} // 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 };
This page took 0.80037 seconds and 5 git commands to generate.