blob: 7d953ff64696613e99abfcda5211bf6404bfe06a [file] [log] [blame]
// PR c++/65075
// { dg-do compile { target c++11 } }
typedef void (*E) ();
template <class T>
constexpr E
bar (bool a)
{
return a ? []() {} : []() {};
}
void
foo ()
{
(bar<int> (false)) ();
(bar<int> (true)) ();
}