repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RTEMS: Add Cortex-M33 multilib
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr79095-3.C
blob
4a1937eace6247aeeec03b1c99cedfc09505ee35
1
/* { dg-do compile } */
2
/* { dg-options "-Wall -O3" } */
3
/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
4
5
#include <vector>
6
7
void foo(std::vector<unsigned int> &v);
8
9
void vtest()
10
{
11
std::vector<unsigned int> v;
12
foo (v);
13
if (v.size() > 0)
14
{
15
v.resize (v.size()-1);
16
}
17
}
18