Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr55331.C
blob: 4717db8091f378af265ad7cbb383c6773d2f6af1 [
file
] [
log
] [
blame
]
// PR tree-optimization/55331
// { dg-do compile }
// { dg-options "-O2 -fno-tree-fre" }
struct
A
{};
void
foo
(
A
*
p
,
bool
x
)
{
A a
;
char
*
e
=
(
char
*)
(&
a
+
1
);
if
(
x
)
__builtin_memmove
(
p
,
&
a
,
e
-
(
char
*)
&
a
);
}