(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr56724-3.c
       1  /* PR c/56724 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wc++-compat" } */
       4  
       5  extern void xfer (int, int, unsigned char *);
       6  struct T { int a; } t;
       7  
       8  void
       9  call (int x, int y, void *arg)
      10  {
      11    unsigned char *uc = arg; /* { dg-warning "23:request for implicit conversion" } */
      12    xfer (x, y, arg); /* { dg-warning "15:request for implicit conversion" } */
      13    xfer (x, y, t); /* { dg-error "15:incompatible type for" } */
      14  }