(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr51683.c
       1  /* PR tree-optimization/51683 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fdump-tree-optimized" } */
       4  
       5  static inline void *
       6  bar (void *p, void *q, int r)
       7  {
       8    return __builtin_memcpy (p, q, r);
       9  }
      10  
      11  void *
      12  foo (void *p)
      13  {
      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" } */
      18  }
      19  
      20  /* { dg-final { scan-tree-dump "memcpy" "optimized" } } */