1 /* PR bootstrap/47187 */ 2 /* { dg-options "-O2" } */ 3 4 char buf[64]; 5 char buf2[64]; 6 7 void * foo(char * p,long size)8foo (char *p, long size) 9 { 10 return __builtin_memcpy (buf, p, size); 11 } 12 13 int main(void)14main (void) 15 { 16 long i; 17 for (i = 0; i < 65536; i++) 18 if (foo ("abcdefghijkl", 12) != buf) 19 __builtin_abort (); 20 if (foo (buf2, 64) != buf) 21 __builtin_abort (); 22 return 0; 23 } 24