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
/
bug-2981.c
blob
b800728efe4b95c61db1a6bc513942d6bca6d469
1
/*
2
bug-3132.c
3
A bug in the handling of inlined function call in a comma operator inside a for condition (code failed to compile)
4
*/
5
6
#include <testfwk.h>
7
8
volatile
int
i
;
9
10
static
inline
void
iRestore
(
void
)
11
{
12
i
++;
13
}
14
15
int
m
(
void
) {
16
for
(
unsigned char
td
=
1
;
td
;
td
=
0
,
iRestore
());
17
return
0
;
18
}
19
20
void
testBug
(
void
)
21
{
22
m
();
23
ASSERT
(
i
==
1
);
24
}
25