blob: b84aaf95b9d0678c6bb5b55270ecf0d9caf626d9 (
plain)
1
2
3
4
5
6
7
|
// PR c++/114426
// { dg-do compile { target c++11 } }
struct A { virtual ~A (); };
struct B : virtual A { constexpr ~B () {} };
// { dg-error "'struct B' has virtual base classes" "" { target c++20 } .-1 }
// { dg-error "'constexpr' destructors only available with" "" { target c++17_down } .-2 }
|