Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr83659.C
blob: bdcdca230ecc4e399bac22e07b0c447fa6b83862 [
file
] [
log
] [
blame
]
// PR c++/83659
// { dg-do compile }
typedef
int
V __attribute__
((
__vector_size__
(
16
)));
V a
;
V b
[
2
];
int
foo
()
{
return
reinterpret_cast
<
int
*>
(&
a
)[-
1
]
+=
1
;
}
int
bar
()
{
return
reinterpret_cast
<
int
*>
(&
a
[
1
])[-
1
];
}