blob: 5323c461fb0f8bb9a4ff6691eedadefdde6a028b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* PR c/19984 */
/* { dg-do compile } */
/* { dg-options "-O2 -std=c99" } */
double nan (const char *);
const double nok = nan (""); /* { dg-warning "(not a constant)|(near initialization)" } */
const double ok = __builtin_nan ("");
double
foo ()
{
double ok2 = nan ("");
return ok2;
}
|