☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr80194.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/pr80194.C
code
plain
raw
1
// PR c++/80194
2
// { dg-do compile { target c++14 } }
3
4
int fn1 ();
5
6
template <class Fn>
7
void
8
fn2 (Fn &&fn)
9
{
10
fn (42);
11
}
12
13
void fn2 ()
14
{
15
auto const x = fn1 ();
16
fn2 ([&](auto) { x; });
17
}