Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr80194.C
blob: 2a892c3cf37a72b83726b1de522f678082cd0905 [
file
] [
log
] [
blame
]
// PR c++/80194
// { dg-do compile { target c++14 } }
int
fn1
();
template
<
class
Fn
>
void
fn2
(
Fn
&&
fn
)
{
fn
(
42
);
}
void
fn2
()
{
auto
const
x
=
fn1
();
fn2
([&](
auto
)
{
x
;
});
}