blob: 6886feb6e210a311b26b7d1961542b411005836f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// PRMS Id: 6837
// Bug: anonymous union confuses g++.
// Build don't link:
struct my_key {
my_key(const my_key&);
my_key(const char* n);
};
struct my_node {
my_node(my_key&);
union {
long cnt;
my_node* next;
};
my_key a;
};
extern my_node n;
my_node a(n);
|