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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-478094.c
blob
7497564561b70c29573b77696629ac1307b9093a
1
/* Tests a commit problem.
2
*/
3
#include <testfwk.h>
4
5
6
7
int
foo
=
16
;
8
9
void
f
(
int
x
)
10
{
11
UNUSED
(
x
);
12
}
13
14
void
g
(
int
bar
)
15
{
16
int
a
=
0
;
17
int
b
=
0
;
18
19
while
(
1
) {
20
switch
(
bar
) {
21
case
0
:
22
--
foo
;
23
f
(
foo
);
24
break
;
25
case
1
:
26
++
foo
;
27
f
(
foo
);
28
break
;
29
case
2
:
30
++
a
;
31
f
(
a
);
32
break
;
33
case
3
:
34
++
b
;
35
f
(
b
);
36
break
;
37
}
38
}
39
}
40
41
void
testBug
(
void
)
42
{
43
}