Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr49264.C

raw
1 // PR c++/49264
2 // { dg-do compile }
3 // { dg-options "-O2" }
4
5 struct B { };
6 struct A { char a[sizeof (B) + 1]; } a;
7
8 static inline void
9 foo (const B &b)
10 {
11 __builtin_memcpy (&a, &b, sizeof (b));
12 }
13
14 void
15 bar ()
16 {
17 B c;
18 foo (c);
19 }