☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
nontype-class3.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/nontype-class3.C
code
plain
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
}