gcc/testsuite/g++.dg/cpp23/auto-fncast17.C
raw| 1 | // PR c++/110025 |
| 2 | // { dg-do compile { target c++23 } } |
| 3 | |
| 4 | template<class...> struct tuple; |
| 5 | |
| 6 | template<auto V> |
| 7 | using constant_t = int; |
| 8 | |
| 9 | template<auto... V> |
| 10 | using constants_t = tuple<constant_t<auto(V)>...>; |
| 11 | |
| 12 | using ty0 = constants_t<>; |
| 13 | using ty1 = constants_t<1>; |
| 14 | using ty2 = constants_t<1, 2>; |
| 15 | using ty3 = constants_t<1, 2, 3>; |