blob: 869e0d51d2b5c27e1468c558ee76a3050d6d4e1c [file] [log] [blame]
// 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)), "");
}