Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-uneval26.C

raw
1 // PR c++/116960
2 // { dg-do compile { target c++20 } }
3
4 template<auto>
5 using Foo = decltype([](auto) { return 0; }(0));
6
7 template<typename...>
8 Foo<[] {}> foo() {} // { dg-warning "no return statement" }
9
10 auto t = foo();