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