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:
parent
14879e768f
commit
3914b81a45
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue