PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr53688.c
blobc7ed4d78b04c1369f19c6564d1d311eaeef1c3df
1 char headline[256];
2 struct hdr {
3 char part1[9];
4 char part2[8];
5 } p;
7 void __attribute__((noinline,noclone))
8 init()
10 __builtin_memcpy (p.part1, "FOOBARFOO", sizeof (p.part1));
11 __builtin_memcpy (p.part2, "SPEC CPU", sizeof (p.part2));
14 int main()
16 char *x;
17 int c;
18 init();
19 __builtin_memcpy (&headline[0], p.part1, 9);
20 c = 9;
21 x = &headline[0];
22 x = x + c;
23 __builtin_memset (x, ' ', 245);
24 __builtin_memcpy (&headline[10], p.part2, 8);
25 c = 18;
26 x = &headline[0];
27 x = x + c;
28 __builtin_memset (x, ' ', 238);
29 if (headline[10] != 'S')
30 __builtin_abort ();
31 return 0;