☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr65075.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr65075.C
code
plain
raw
1
// PR c++/65075
2
// { dg-do compile { target c++11 } }
3
4
typedef void (*E) ();
5
template <class T>
6
constexpr E
7
bar (bool a)
8
{
9
return a ? []() {} : []() {};
10
}
11
12
void
13
foo ()
14
{
15
(bar<int> (false)) ();
16
(bar<int> (true)) ();
17
}