aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/constexpr-virtual21.C
blob: 8b70c5f538b5a787cf77885e2abed96aa50b382c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/93413
// { dg-do compile { target c++20 } }

struct Base {
  virtual ~Base() = default;
};
constexpr Base b;

struct Derived : Base { };
constexpr Derived d;