Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr19984.c
bloba628e0e91eac28d7b99fa1f86d225c74d3ab324b
1 /* PR c/19984 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -std=c99 -Wpedantic" } */
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;