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

#include <type_traits>

template <class T, class U>
concept Same = std::is_same<T, U>::value;

struct test {
  template <Same<int>... Ints>
  void func(Ints... ints) {}
};

int main()
{
  test t;
  t.func(1, 2, 3);
}