gcc/testsuite/g++.dg/cpp2a/concepts-pr78752.C
raw| 1 | // { dg-do compile { target c++20 } } |
| 2 | // { dg-additional-options "-fconcepts" } |
| 3 | |
| 4 | #include <type_traits> |
| 5 | |
| 6 | template <class T, class U> |
| 7 | concept Same = std::is_same<T, U>::value; |
| 8 | |
| 9 | struct test { |
| 10 | template <Same<int>... Ints> |
| 11 | void func(Ints... ints) {} |
| 12 | }; |
| 13 | |
| 14 | int main() |
| 15 | { |
| 16 | test t; |
| 17 | t.func(1, 2, 3); |
| 18 | } |