repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr79095-3.C
blob
28c8a3768e61dbb83acb9789d08dcc908fcd4d2c
1
/* { dg-do compile } */
2
/* { dg-options "-Wall -O3" } */
3
4
#include <vector>
5
6
void foo(std::vector<unsigned int> &v);
7
8
void vtest()
9
{
10
std::vector<unsigned int> v;
11
foo (v);
12
if (v.size() > 0)
13
{
14
v.resize (v.size()-1);
15
}
16
}
17