FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / synth9.C
blob6886feb6e210a311b26b7d1961542b411005836f
1 // PRMS Id: 6837
2 // Bug: anonymous union confuses g++.
3 // Build don't link:
5 struct my_key {
6    my_key(const my_key&);
7    my_key(const char* n);
8 };
10 struct my_node {
11    my_node(my_key&);
12    union {
13       long cnt;
14       my_node* next;
15    };
16    my_key a;
19 extern my_node n;
20 my_node a(n);