Add missing testcase
From-SVN: r191705
This commit is contained in:
parent
9bc607c0ea
commit
c1301f6027
1 changed files with 23 additions and 0 deletions
23
gcc/testsuite/gcc.target/i386/20030217-2.c
Normal file
23
gcc/testsuite/gcc.target/i386/20030217-2.c
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Reference in a new issue