summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/copy6.C
blob: 136dc78302690f12d6944bf453d8b603c2e6f612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/11878

struct A
{
    virtual ~A();
};

template<typename T> struct B
{
    T t;
};

void foo() { throw B<A>().t; }