Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr14649-1.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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; }