aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/intro7.C
blob: 9cb4a76740b5918f497b2876a2038b767224fc44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/66985
// { dg-options "-std=c++17 -fconcepts" }

template <template <class> class T>
concept bool _Valid = requires { typename T<int>; };

template <template <class> class T>
struct __defer { };

_Valid{T}
struct __defer<T> {
  using type = T<int>;
};