aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-uneval2.C
blob: 4793bd6f36d29918677bd405b993985020919b07 (plain)
1
2
3
4
5
6
7
8
// PR c++/99994
// { dg-do compile { target c++20 } }

int main() {
  auto f = [](int) { return true; };
  int n = [&](auto i) requires (f(sizeof(i))) { return 99; }(12);
  int m = [](auto i) requires (f(sizeof(i))) { return 99; }(12);
}