1 /* PR tree-optimization/51315 */
2 /* Reported by Jurij Smakov <jurij@wooyd.org> */
4 typedef unsigned int size_t;
6 extern void *memcpy (void *__restrict __dest,
7 __const void *__restrict __src, size_t __n)
8 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
10 extern size_t strlen (__const char *__s)
11 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
13 typedef __INT16_TYPE__ int16_t;
14 typedef __INT32_TYPE__ int32_t;
16 extern void abort (void);
20 static void __attribute__ ((noinline,noclone))
21 do_something (int item)
27 pack_unpack (char *s, char *p)
33 send = s + strlen (s);
34 pend = p + strlen (p);
58 char a[sizeof (int16_t)];
61 memcpy (v.a, s, sizeof (int16_t));
62 s += sizeof (int16_t);
72 char a[sizeof (int32_t)];
75 memcpy (v.a, s, sizeof (int32_t));
76 s += sizeof (int32_t);
90 int n = pack_unpack ("\200\001\377\376\035\300", "sl");