blob: b9fc4b9461637176aaccd00738d8548b99f1c30e [file] [log] [blame]
/* PR c/14649 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wpedantic" } */
double atan(double);
const double pi = 4*atan(1.0); /* { dg-warning "not a constant expression" } */
const double ok = 4*__builtin_atan(1.0);
double foo()
{
double ok2 = 4*atan(1.0);
return ok2;
}