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-930603-2.c
blob
b89c455690c0be471462407fc9aa6ef05e40fd29
1
/*
2
930603-2.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
int
w
[
2
][
2
];
12
13
void
14
f
(
void
)
15
{
16
int
i
,
j
;
17
18
for
(
i
=
0
;
i
<
2
;
i
++)
19
for
(
j
=
0
;
j
<
2
;
j
++)
20
if
(
i
==
j
)
21
w
[
i
][
j
] =
1
;
22
}
23
24
void
25
testTortureExecute
(
void
)
26
{
27
f
();
28
ASSERT
(!(
w
[
0
][
0
] !=
1
||
w
[
1
][
1
] !=
1
||
w
[
1
][
0
] !=
0
||
w
[
0
][
1
] !=
0
));
29
return
;
30
}
31