repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-pr85529-2.c
blob
dbdb5856b127c1ffac9b3ce0abb66fd0f6614caf
1
/*
2
pr85529-2.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
/* PR tree-optimization/85529 */
8
9
int
10
foo
(
int
x
)
11
{
12
x
&=
63
;
13
x
-=
50
;
14
x
|=
1
;
15
if
(
x
<
0
)
16
return
1
;
17
int
y
=
x
>>
2
;
18
if
(
x
>=
y
)
19
return
1
;
20
return
0
;
21
}
22
23
void
24
testTortureExecute
(
void
)
25
{
26
#if !(defined (__GNUC__) && (__GNUC__ < 8))
27
int
i
;
28
for
(
i
=
0
;
i
<
63
;
i
++)
29
if
(
foo
(
i
) !=
1
)
30
ASSERT
(
0
);
31
return
;
32
#endif
33
}