Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / single-precision-constant.c
blob877e4d74d67b60bf7671f8cc89612e4865c20de5
1 /* Test that double precision constants are correctly handled
2 when code is compiled with -fsingle-precision-constant */
3 /* Origin: Carlos O'Donell <carlos@codesourcery.com> */
4 /* { dg-do run } */
5 /* { dg-options "-fsingle-precision-constant" } */
6 #include <math.h>
7 #include <float.h>
9 int main (void)
11 int result = 0;
12 double local_DBL_MAX = DBL_MAX;
13 double local_DBL_MIN = DBL_MIN;
14 if (isinf (local_DBL_MAX))
15 result |= 1;
16 if (local_DBL_MIN <= 0.0)
17 result |= 1;
18 return result;