aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-requires2.C
blob: be5a71abefe8c6606baa32d8ddaf21d317366c74 (plain)
1
2
3
4
5
6
7
8
// PR c++/99546
// { dg-do compile { target c++20 } }

int main() {
  constexpr auto b = requires { []{}; };
  static_assert(b);
  static_assert(!b);		// { dg-error "assertion failed" }
}