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
/
bug3117721.c
blob
f500d5cf52674a292556eb225f44d8f8967845a2
1
/*
2
* bug3117721.c
3
*/
4
5
#include <testfwk.h>
6
7
/* should not generate:
8
warning 185: comparison of 'signed char' with 'unsigned char' requires promotion to int */
9
char
GenerateBug
(
unsigned char
iKey
)
10
{
11
if
(
iKey
==
'T'
)
12
{
13
return
1
;
14
}
15
else if
(
iKey
!=
't'
)
16
{
17
return
2
;
18
}
19
return
0
;
20
}
21
22
void
testBug
(
void
)
23
{
24
ASSERT
(
1
);
25
}