Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class69.C

raw
1 // PR c++/113800
2 // { dg-do compile { target c++20 } }
3
4 // DR 2450
5 struct S { int a; };
6
7 template<S s>
8 void
9 f ()
10 {
11 }
12
13 void
14 test ()
15 {
16 f<{0}>();
17 f<{.a= 0}>();
18 }
19
20 // DR 2459
21 struct A {
22 constexpr A (float) {}
23 };
24
25 template<A>
26 struct X {};
27 X<1> x;