aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec5.C
blob: 8774d4f6fd703f60c716d247cb8f9d37b2ab2bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/67138
// { dg-do compile { target c++20 } }

template <class T>
concept Auto = true;

template <Auto T>
struct test {};

template <Auto T>
  requires requires (T t) { t + t; }
struct test<T> {};