Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wclass-memaccess-7.C
blob: 7e86b2486298c76bbb657580a1c336492c5bde43 [
file
] [
log
] [
blame
]
// PR c++/105634
// { dg-do compile { target { c++11 } } }
// { dg-options "-Wall" }
struct
s
{
struct
{}
a
[]
=
1.0
;
// { dg-error "" }
void
f
(
char
*
c
)
{
s s
;
__builtin_memcpy
(&
s
,
c
,
sizeof
(
s
));
}
};