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
c++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr83659.C
blob
bdcdca230ecc4e399bac22e07b0c447fa6b83862
1
// PR c++/83659
2
// { dg-do compile }
3
4
typedef int V __attribute__ ((__vector_size__ (16)));
5
V a;
6
V b[2];
7
8
int
9
foo ()
10
{
11
return reinterpret_cast <int *> (&a)[-1] += 1;
12
}
13
14
int
15
bar ()
16
{
17
return reinterpret_cast <int *> (&a[1])[-1];
18
}