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 #if __SIZEOF_SHORT__ == 2
14 typedef short int int16_t;
15 #elif __SIZEOF_INT__ == 2
17 #elif __SIZEOF_LONG__ == 2
24 #if __SIZEOF_INT__ == 4
26 #elif __SIZEOF_LONG__ == 4
28 #elif __SIZEOF_SHORT__ == 4
29 typedef short int32_t;
34 extern void abort (void);
38 static void __attribute__ ((noinline,noclone))
39 do_something (int item)
45 pack_unpack (char *s, char *p)
51 send = s + strlen (s);
52 pend = p + strlen (p);
76 char a[sizeof (int16_t)];
79 memcpy (v.a, s, sizeof (int16_t));
80 s += sizeof (int16_t);
90 char a[sizeof (int32_t)];
93 memcpy (v.a, s, sizeof (int32_t));
94 s += sizeof (int32_t);
108 int n = pack_unpack ("\200\001\377\376\035\300", "sl");