Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/990826-0.c

raw
1 /*
2 From: [email protected]
3 To: [email protected]
4 Subject: Re: Scary problems in g77 for RedHat 6.0. (glibc-2.1)
5 Date: Sun, 06 Jun 1999 23:37:23 -0400
6 X-UIDL: 9c1e40c572e3b306464f703461764cd5
7 */
8
9 /* { dg-xfail-if "Can not call system libm.a with -msoft-float" { powerpc-*-aix* rs6000-*-aix* } { "-msoft-float" } { "" } } */
10
11 #include <stdio.h>
12 #include <math.h>
13
14 void abort (void);
15
16 int
17 main()
18 {
19 if (floor (0.1) != 0.)
20 abort ();
21 return 0;
22 }
23
24 /*
25 It will result in 36028797018963968.000000 on Alpha RedHat Linux 6.0
26 using glibc-2.1 at least on my 21064. This may result in g77 bug
27 reports concerning the INT() function, just so you know.
28
29 Thanks,
30 Rick Niles.
31 */