2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51683.c
blobf5a4a8be4859b87192d5aa916be3965782ad101c
1 /* PR tree-optimization/51683 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static inline void *
6 bar (void *p, void *q, int r)
8 return __builtin_memcpy (p, q, r);
11 void *
12 foo (void *p)
14 return bar ((void *) 0x12345000, p, 256);
17 /* { dg-final { scan-tree-dump "memcpy" "optimized" } } */
18 /* { dg-final { cleanup-tree-dump "optimized" } } */