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