Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr79095-3.C
blob: 28c8a3768e61dbb83acb9789d08dcc908fcd4d2c [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wall -O3" } */
#include
<vector>
void
foo
(
std
::
vector
<
unsigned
int
>
&
v
);
void
vtest
()
{
std
::
vector
<
unsigned
int
>
v
;
foo
(
v
);
if
(
v
.
size
()
>
0
)
{
v
.
resize
(
v
.
size
()-
1
);
}
}