PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / c-c++-common / pr70756-2.c
blobb7df3b798539baac1fbc51be24d3e10608365b0f
1 /* PR c/70756 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wpointer-arith" } */
5 extern void bar (void);
7 void
8 fn (void *p)
10 void *a = p + 1; /* { dg-warning "15:pointer of type" } */
11 void (*a2)(void) = &bar + 1; /* { dg-warning "27:pointer to a function" } */