PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / pr46137.c
blob3e44ff6b7c97ec4037290a0074a5e57d2c1b64a8
1 /* { dg-do compile } */
3 struct X { };
5 static inline void *
6 bar (void *dst, void *src)
8 return __builtin___memcpy_chk (dst, src, sizeof (struct X),
9 __builtin_object_size (dst, 0));
12 struct X
13 foo (struct X *x)
15 struct X any;
16 bar (&any, x);
17 return any;