1 /* PR c/70756 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wpointer-arith" } */ 4 5 extern void bar (void); 6 7 void fn(void * p)8fn (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 } 13