Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/constexpr-dtor16.C

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