Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-local-addr-3.C
blob: 52607b622848501781825fe821339297f645d145 [
file
] [
log
] [
blame
]
// PR c++/51270
// { dg-options "-O2" }
const
int
&
f
(
long
l
)
{
const
int
&
i
=
l
;
return
i
;
// { dg-warning "address of local variable" }
}