Debian Codegraph @

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

raw
1 // PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2 // { dg-do compile { target c++20 } }
3 // In c++2a we don't emit a call to _ZN3FooI3ArgEC1Ev.
4
5 struct Arg;
6 struct Base {
7 int i;
8 virtual ~Base();
9 };
10 template <class> struct Foo : Base { };
11 Foo<Arg> a;