1char headline[256]; 2struct hdr { 3 char part1[9]; 4 char part2[8]; 5} p; 6 7void __attribute__((noinline,noclone)) 8init() 9{ 10 __builtin_memcpy (p.part1, "FOOBARFOO", sizeof (p.part1)); 11 __builtin_memcpy (p.part2, "SPEC CPU", sizeof (p.part2)); 12} 13 14int main() 15{ 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; 32} 33