Debian Codegraph @

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

raw
1 // PR c++/90099
2 // { dg-do compile { target c++20 } }
3
4 struct Unit {
5 int value;
6 // auto operator<=>(const Unit&) = default;
7 };
8
9 template<Unit U, typename... Ts>
10 struct X {};
11
12 template<Unit U, typename T, typename... Rest>
13 struct X<U, T, Rest...> {};