Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
init-statement1.C
blob: fbe0d8be011499a52ecc4d4b80958a5cae99806b [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "" }
extern
int
foo
(
void
);
extern
void
bar
(
int
);
void
f
(
void
)
{
if
(
auto
p
=
foo
();
p
>
10
)
// { dg-warning "init-statement" "" { target c++14_down } }
bar
(
p
);
else
bar
(-
p
);
}