Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}
}