summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/variadic6.C
blob: 0b386b0cd6d9da1d097184b4563ce8d6f56706d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/105268
// { dg-do compile { target concepts } }

template<typename> concept C_one = true;
template<typename...> concept C_many = true;

template<bool B> struct S { };

template<typename T = S<C_one<int>>> void f();
template<typename T = S<C_many<int>>> void g();

void
fn (auto a = S<C_one<int>>{})
{
}

void
fn2 (auto a = S<C_many<int>>{})
{
}