Debian Codegraph @

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

raw
1 // PR c++/93413
2 // { dg-do compile { target c++20 } }
3
4 struct Base {
5 virtual ~Base() = default;
6 };
7 constexpr Base b;
8
9 struct Derived : Base { };
10 constexpr Derived d;