20010226-1.c: New test.

2001-02-26  Will Cohen  <wcohen@redhat.com>

	* gcc.c-torture/execute/ieee/20010226-1.c: New test.

From-SVN: r40071
This commit is contained in:
Will Cohen 2001-02-26 19:57:04 +00:00 committed by William Cohen
parent 14879e768f
commit 3914b81a45
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-02-26 Will Cohen <wcohen@redhat.com>
* gcc.c-torture/execute/ieee/20010226-1.c: New test.
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
* g++.old-deja/g++.pt/overload15.C: New test to stress overloaded

View File

@ -0,0 +1,17 @@
long double dfrom = 1.1;
long double m1;
long double m2;
unsigned long mant_long;
int main( )
{
m1 = dfrom / 2.0;
m2 = m1 * 4294967296.0;
mant_long = ((unsigned long) m2) & 0xffffffff;
if ( mant_long == 0x8ccccccc)
exit (0);
else
abort();
}