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-pr64260.c
blob
e7b5ea36230b7b082a9ea2062788dd3519785c53
1
/*
2
pr642602.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
/* PR rtl-optimization/64260 */
12
13
int
a
=
1
,
b
;
14
15
void
16
foo
(
char
p
)
17
{
18
int
t
=
0
;
19
for
(;
b
<
1
;
b
++)
20
{
21
int
*
s
= &
a
;
22
if
(--
t
)
23
*
s
&=
p
;
24
*
s
&=
1
;
25
}
26
}
27
28
void
29
testTortureExecute
(
void
)
30
{
31
foo
(
0
);
32
if
(
a
!=
0
)
33
ASSERT
(
0
);
34
return
;
35
}