Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.dg / cpp0x / defaulted41.C
1 // PR c++/56343
2 // { dg-do compile { target c++11 } }
3
4 class B
5 {
6 public:
7   virtual ~B() noexcept(false) { }
8 };
9
10 class D : public B
11 {
12 public:
13   virtual ~D() = default;
14 };