Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-deduce-neg.C
blob: 6ada75756cabce0f6e9a730c234bd196244f2012 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
int
main
()
{
int
i
=
0
;
int
&
r
=
[&]
()
{
return
i
;
}
();
// { dg-error "" "invalid initialization of non-const reference of type .int&. from a temporary of type .int." }
return
0
;
}