aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-rounding-math-1.c
blob: 2bece1a09d53876a9ab1b26abe4cf3d41c684afc (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test static initializer folding of implicit conversions to floating point
   types, even with -frounding-math and related options.  Bug 103031.  */
/* { dg-do compile } */
/* { dg-options "-frounding-math -ftrapping-math -fsignaling-nans" } */

float f1 = -1ULL;
float f2 = __DBL_MAX__;
float f3 = __DBL_MIN__;
float f4 = 0.1;
float f5 = __builtin_nans ("");
double d1 = -1ULL;