blob: 869e0d51d2b5c27e1468c558ee76a3050d6d4e1c (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/90583
// DR 1722: Lambda to function pointer conversion should be noexcept.
// { dg-do compile { target c++11 } }
void
foo ()
{
auto l = [](int){ return 42; };
static_assert(noexcept((int (*)(int))(l)), "");
}
|