aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/auto-fncast17.C
blob: 25186dfdbf2332929b6d2c31b264c06a241ff3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/110025
// { dg-do compile { target c++23 } }

template<class...> struct tuple;

template<auto V>
using constant_t = int;

template<auto... V>
using constants_t = tuple<constant_t<auto(V)>...>;

using ty0 = constants_t<>;
using ty1 = constants_t<1>;
using ty2 = constants_t<1, 2>;
using ty3 = constants_t<1, 2, 3>;