1 /* PR tree-optimization/51683 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
6 bar (void *p
, void *q
, int r
)
8 return __builtin_memcpy (p
, q
, r
);
14 return bar ((void *) 0x12345000, p
, 256);
15 /* Integers converted to pointers are assumed to be the result of
16 (invalid) arithmetic on null pointers.
17 { dg-prune-output "writing 256 bytes into a region of size 0" } */
20 /* { dg-final { scan-tree-dump "memcpy" "optimized" } } */