Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr14649-1.c
blob34f42f08f2cadef0f5c3a6b5663d005b0ed58094
1 /* PR c/14649 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 double atan(double);
7 const double pi = 4*atan(1.0); /* { dg-warning "not a constant expression" } */
9 const double ok = 4*__builtin_atan(1.0);
11 double foo()
13 double ok2 = 4*atan(1.0);
14 return ok2;