projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added some regression tests from patch #2321830
[fw/sdcc]
/
support
/
regression
/
tests
/
strcmp.c
1
/** tests for strcmp
2
*/
3
#include <testfwk.h>
4
#include <string.h>
5
6
static void
7
teststrcmp(void)
8
{
9
int result = strcmp("", "");
10
ASSERT( result == 0);
11
12
result = strcmp("", "a");
13
ASSERT( result < 0);
14
15
result = strcmp("a", "");
16
ASSERT( result > 0);
17
18
result = strcmp("ab", "ab");
19
ASSERT( result == 0);
20
21
result = strcmp("aa", "ab");
22
ASSERT( result < 0);
23
}