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-pr22630.c
blob
f79415f3ae3e1f338174b67ab39802290a55516b
1
/*
2
pr15262.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
int
j
;
12
13
void
bla
(
int
*
r
)
14
{
15
int
*
p
, *
q
;
16
17
p
=
q
=
r
;
18
if
(!
p
)
19
p
= &
j
;
20
21
if
(
p
!=
q
)
22
j
=
1
;
23
}
24
25
void
26
testTortureExecute
(
void
)
27
{
28
bla
(
0
);
29
if
(!
j
)
30
ASSERT
(
0
);
31
return
;
32
}
33