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-pr64756.c
blob
1cb76d75a8f391b9ee5fd9287043b0b72ab40fe8
1
/*
2
pr64756.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/64756 */
12
13
int
a
, *
tmp
, **
c
= &
tmp
;
14
volatile
int
d
;
15
static int
*
volatile
*
e
= &
tmp
;
16
unsigned int
f
;
17
18
static void
19
fn1
(
int
*
p
)
20
{
21
int
g
;
22
for
(;
f
<
1
;
f
++)
23
for
(
g
=
1
;
g
>=
0
;
g
--)
24
{
25
d
||
d
;
26
*
c
=
p
;
27
28
if
(
tmp
!= &
a
)
29
ASSERT
(
0
);
30
31
*
e
=
0
;
32
}
33
}
34
35
void
36
testTortureExecute
(
void
)
37
{
38
fn1
(&
a
);
39
return
;
40
}