repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr107490.c
blob
87c7f0aacdd3a8c483221d28f06481f2dc5613c9
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
}