aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-placeholder15.C
blob: e6571e9f18cdda5e8db8d426c272763099504752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/121981
// { dg-do compile { target c++20 } }

template<auto V>
concept C = requires { V; };

template<class T, auto V>
concept D = C<V>;

template<auto V, D<V> auto W>
struct A { };

template<auto V, D<V> T>
struct B { };

A<0, 1> a;
B<0, int> b;