Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/anon7.C

raw
1 // { dg-do assemble }
2
3 struct A {
4 union {
5 int a; // { dg-message "" } conflicts with previous declaration
6 };
7 int a; // { dg-error "" }
8 };
9
10 struct B {
11 int b; // { dg-message "" } conflicts with previous declaration
12 union {
13 int b; // { dg-error "" } duplicate member
14 };
15 };
16
17 struct C {
18 union {
19 int c; // { dg-message "" } conflicts with previous declaration
20 };
21 union {
22 int c; // { dg-error "" } duplicate member
23 };
24 };