aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted41.C
blob: 4272012d5d53213c3e477c6e536f7c86a811c4a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/56343
// { dg-do compile { target c++11 } }

class B
{
public:
  virtual ~B() noexcept(false) { }
};

class D : public B
{
public:
  virtual ~D() = default;
};