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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr100253.C
blob
031b4fa58db752797b21eabffed9290d5d5a5aac
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fno-tree-bit-ccp -ftree-slp-vectorize" } */
3
/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
4
5
#include <vector>
6
7
struct T
8
{
9
};
10
11
struct S
12
{
13
std::vector < std::vector < T > > v;
14
char x;
15
char y[16];
16
char z[16];
17
};
18
19
S s, g[1];
20
21
void
22
foo (char *buf)
23
{
24
s = g[*buf];
25
}
26
27
char c;
28
29
int
30
main ()
31
{
32
foo (&c);
33
return 0;
34
}