1 /* PR tree-optimization/51683 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fdump-tree-optimized" } */ 4 5 static inline void * bar(void * p,void * q,int r)6bar (void *p, void *q, int r) 7 { 8 return __builtin_memcpy (p, q, r); 9 } 10 11 void * foo(void * p)12foo (void *p) 13 { 14 return bar ((void *) 0x12345000, p, 256); 15 } 16 17 /* { dg-final { scan-tree-dump "memcpy" "optimized" } } */ 18