summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/intro3.C
blob: f02f1bea2473bd872d68176c63803919edb6a602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }

template<typename ... T>
  concept bool C1 = true;

template<int ... N>
  concept bool C2 = true;

C1{...A} void f1() {};
C2{...A} void f2() {};

int main()
{
  f1<int, short, char>();
  f2<1, 2, 3>();
  return 0;
}