diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/20030217-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/20030217-1.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/20030217-1.c b/gcc/testsuite/gcc.target/i386/20030217-1.c new file mode 100644 index 000000000..f19fd27fe --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/20030217-1.c @@ -0,0 +1,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); +} |