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

template<class T, bool V = requires (T t) { x(t); }> void f();

struct A {
  int m;
  void f(int a, int b = requires (int t) { a + m + t; });
};

void g();
static_assert(noexcept(requires { g(); }));