]>
Commit | Line | Data |
---|---|---|
bdf00185 AH |
1 | // { dg-do compile } |
2 | // { dg-options "-Os -fno-trapping-math -w" } | |
3 | ||
4 | extern void abort (void); | |
5 | ||
6 | #define MIN2(a,b) (((a)<(b)) ? (a) : (b)) | |
7 | #define MAX2(a,b) (((a)>(b)) ? (a) : (b)) | |
8 | ||
9 | double p[2] = { 4.f, 5.f }; | |
10 | ||
11 | int main() | |
12 | { | |
13 | long j; | |
14 | double R, n, x; | |
15 | n = 1.e300f; | |
16 | x = -1.e300f; | |
17 | for( j=0; j < 2; j++ ) | |
18 | { | |
19 | x = MAX2(x,p[j]); | |
20 | n = MIN2(n,p[j]); | |
21 | } | |
22 | R = x-n; | |
23 | ||
24 | if( R < 0.1 ) | |
25 | abort (); | |
26 | ||
27 | return 0; | |
28 | } |