Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
];
}