Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr19984.c
blob5323c461fb0f8bb9a4ff6691eedadefdde6a028b
1 /* PR c/19984 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -std=c99" } */
6 double nan (const char *);
8 const double nok = nan (""); /* { dg-warning "(not a constant)|(near initialization)" } */
10 const double ok = __builtin_nan ("");
12 double
13 foo ()
15 double ok2 = nan ("");
16 return ok2;