Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-friend17.C
blob9b5091f14a811770fc2afb0ae080029d6dbc19a7
1 // PR c++/113966
2 // { dg-do compile { target c++20 } }
4 template<class T> concept C = T::value;
6 template<class T>
7 struct A {
8   template<class U> requires U::value || requires { { T() } -> C; }
9   friend void f(A, U) { }
11   template<class U> requires requires { { g(U()) } noexcept; }
12   friend void f(A, U, U) { }
15 template struct A<int>;