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

long double d = 0x0.0000003ffffffff00000p-16357L;
long double e = 0x0.0000003ffffffff00000p-16356L;

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

int
main (void)
{
  if (d != e / 2.0)
    abort ();
  exit (0);
}