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
/
bug3480545.c
blob
09cb946d2ec0f7a0839da9e8c58a3700be661a2e
1
/*
2
bug3480545.c
3
*/
4
5
#include <testfwk.h>
6
7
unsigned char
var
=
1
;
8
9
char
do_switch
(
void
)
10
{
11
switch
(
var
)
12
{
13
case
0
:
return
0
;
14
case
1
:
return
1
;
15
case
2
:
return
2
;
16
case
3
:
return
3
;
17
case
4
:
return
3
;
18
case
5
:
return
3
;
19
case
6
:
return
3
;
20
case
7
:
return
3
;
21
case
8
:
return
0
;
22
case
9
:
return
1
;
23
case
10
:
return
2
;
24
case
11
:
return
3
;
25
case
12
:
return
3
;
26
case
13
:
return
3
;
27
case
14
:
return
3
;
28
case
15
:
return
3
;
29
case
16
:
return
3
;
30
case
17
:
return
3
;
31
}
32
33
return
0
;
34
}
35
36
void
37
testBug
(
void
)
38
{
39
ASSERT
(
do_switch
() ==
1
);
40
}