summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc4.C
blob: d9df9561d2c1908f200c2a5d5f975444dc3e4b5d (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// GROUPS passed miscellaneous
// This should not emit an error about A::~A() being redefined; we
// should check that it is a pure virtual.
class A {
public:
    virtual ~A() = 0;
};

A::~A() {}