(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Wint-to-pointer-cast-2.c
       1  /* Test -Wint-to-pointer-cast.  */
       2  /* Origin: Joseph Myers <joseph@codesourcery.com> */
       3  /* { dg-do compile } */
       4  /* { dg-options "-Wint-to-pointer-cast" } */
       5  
       6  char c;
       7  
       8  void *
       9  f (void)
      10  {
      11    return (void *) c; /* { dg-warning "10:cast to pointer from integer of different size" } */
      12  }