diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2012-09-25 06:06:31 -0700 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-09-25 06:06:31 -0700 |
commit | c1301f602711e6397326084efef1516a194c9e84 (patch) | |
tree | c0354ef608840cff42328c2271107d4865b92133 | |
parent | 9bc607c0ea12c47ca314d1bf5b4a44bc07f17d74 (diff) | |
download | gcc-c1301f602711e6397326084efef1516a194c9e84.zip gcc-c1301f602711e6397326084efef1516a194c9e84.tar.gz gcc-c1301f602711e6397326084efef1516a194c9e84.tar.bz2 |
Add missing testcase
From-SVN: r191705
-rw-r--r-- | gcc/testsuite/gcc.target/i386/20030217-2.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/20030217-2.c b/gcc/testsuite/gcc.target/i386/20030217-2.c new file mode 100644 index 0000000..d0606a2 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/20030217-2.c @@ -0,0 +1,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); +} |