summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/init8.C
blob: bd49ce2eeed079d57f106377059406ea4ec88f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// GROUPS passed initialization
class A
{
public:
    A(const A & a) : i_member(a.i_member)
    {
    }
    A(const int & i) : i_member(i)
    {
    }
    union
    {
        int i_member;
    };
};