LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / Wincompatible-pointer-types.c
blobe765b27609abafbdf1d44ca7b6c0855afd0d2d1e
1 /* PR c/58286 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wno-incompatible-pointer-types" } */
5 void
6 fn2 (short *s, long *l)
10 unsigned *
11 fn1 (void)
13 int (*fpi) (int);
14 int (*fpd) (double) = fpi;
15 fpi = fpd;
16 char *di;
17 float *dp = &di;
18 di = dp;
19 fn2 (dp, di);
20 return dp;