(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr70756-2.c
       1  /* PR c/70756 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wpointer-arith" } */
       4  
       5  extern void bar (void);
       6  
       7  void
       8  fn (void *p)
       9  {
      10    void *a = p + 1; /* { dg-warning "15:pointer of type" } */
      11    void (*a2)(void) = &bar + 1; /* { dg-warning "27:pointer to a function" } */
      12  }