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