Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2
3 struct A {
4 int i;
5 // auto operator<=> (const A&) = default;
6 };
7 template <A a> void g();
8 template <auto t> void f()
9 {
10 g<t>();
11 }
12
13 int main()
14 {
15 f<A{1}>();
16 }