2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / c-c++-common / Wpointer-arith-1.c
blob86668ef1b7ec5c1b1cec350419492bdf658872f5
1 /* { dg-do compile } */
2 /* { dg-options "-Wpedantic -Wno-pointer-arith" } */
4 void h(void)
6 typedef void (*pft) ();
7 typedef void (ft) ();
9 void *pv = 0;
10 pft pf = 0;
12 pv++;
13 pf++;
15 --pv;
16 --pf;
18 pv += 1;
19 pf += 1;
21 pv = pv - 1;
22 pf = pf - 1;
24 sizeof (void);
25 sizeof (ft);