Debian Codegraph @

gcc/testsuite/c-c++-common/torture/pr46137.c

raw
1 /* { dg-do compile } */
2
3 struct X { };
4
5 static inline void *
6 bar (void *dst, void *src)
7 {
8 return __builtin___memcpy_chk (dst, src, sizeof (struct X),
9 __builtin_object_size (dst, 0));
10 }
11
12 struct X
13 foo (struct X *x)
14 {
15 struct X any;
16 bar (&any, x);
17 return any;
18 }