Skip to content

Commit 4e1fe93

Browse files
author
Daniel Kroening
authored
Merge pull request #1396 from diffblue/String6-fixup
Fix up regression/cbmc/String6
2 parents 9497b02 + 17c6ca0 commit 4e1fe93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

regression/cbmc/String6/main.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
#include <assert.h>
22
#include <string.h>
3-
void free(void *);
3+
#include <stdlib.h>
44

55
int main()
66
{
77
char str[500]="Hello";
88

99
assert(strcmp(str, "Hello")==0);
1010
assert(strncmp(str, "Hello", 5)==0);
11+
12+
#ifndef _MSC_VER
1113
assert(strcasecmp(str, "HELLO")==0);
1214
assert(strncasecmp(str, "HELLO", 5)==0);
15+
#endif
16+
1317
assert(strcmp(str, "\xff")<0);
1418
assert(strncmp("ASDxx", "ASDyy", 3)==0);
1519

0 commit comments

Comments
 (0)