aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/union2.C
blob: d913ae80321f43f63a7dd32b8434ad8a459a2f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link: 
// GROUPS passed unions
class B;
 
struct A {
    A(B* x) : i(x) {}
    A() : i(0) {}
 
    union {
        B* i;
        B* c;
    };
};