Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/synth9.C

raw
1 // { dg-do assemble }
2 // PRMS Id: 6837
3 // Bug: anonymous union confuses g++.
4
5 struct my_key {
6 my_key(const my_key&);
7 my_key(const char* n);
8 };
9
10 struct my_node {
11 my_node(my_key&);
12 union {
13 long cnt;
14 my_node* next;
15 };
16 my_key a;
17 };
18
19 extern my_node n;
20 my_node a(n);