aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/20030217-2.c
blob: d0606a242080aa7da9f5ec7459f4b8132be0996b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Test whether denormal floating point constants in hexadecimal notation
   are parsed correctly.  */
/* { dg-do run } */
/* { dg-options "-std=c99" } */

long double d;
long double e;

long double f = 2.2250738585072014E-308L;

extern void abort (void);
extern void exit (int);

int
main (void)
{
   d = 0x0.0000003ffffffff00000p-1048L;
   e = 0x0.0000003ffffffff00000p-1047L;
  if (d != e / 2.0)
    abort ();

  exit (0);
}