Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr86738.C
blob: f5079ffde831b826025455356a072a31542eae84 [
file
] [
log
] [
blame
]
// PR c++/86738
// { dg-do compile }
struct
S
{
int
s
;
};
unsigned
char
a
[
20
];
unsigned
char
*
p
=
&
a
[(
__UINTPTR_TYPE__
)
&((
S
*)
0
)->
s
];
void
foo
()
{
__builtin_memcpy
(&
a
[
15
],
&
a
[(
__UINTPTR_TYPE__
)
&((
S
*)
0
)->
s
],
2
);
}