summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr39764.C
blob: a8901331352569a220a21c13f8730ad893fbc00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

class A;
class B { };
extern const double NaN;
B foo(A* exec, double d);
inline B baz(A* a)     {
    return foo(a, NaN);
}
B bar(A* a) {
    return baz(a);
}
extern const double NaN = (__builtin_nanf(""));