Skip to content

Commit 7da6665

Browse files
authored
Merge pull request #8212 from tautschnig/bugfixes/unsigned-char
Make tests pass when char is unsigned
2 parents 1939544 + bc777dc commit 7da6665

File tree

2 files changed

+2
-2
lines changed
  • regression

2 files changed

+2
-2
lines changed

regression/cbmc-cpp/Pointer_Conversion2/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <cassert>
2-
char a[100];
2+
signed char a[100];
33

44
void f(const signed char x[])
55
{

regression/cbmc/pragma_cprover_enable_all/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ main.c
88
^\[main\.division-by-zero\.\d+\] line 84 division by zero in x / den: FAILURE
99
^\[main\.overflow\.\d+\] line 84 arithmetic overflow on floating-point division in x / den: FAILURE
1010
^\[main\.enum-range-check\.\d+\] line 85 enum range check in \(ABC\)10: FAILURE
11-
^\[main\.overflow\.\d+\] line 86 arithmetic overflow on signed type conversion in \(char\)\(\(signed int\)i \+ 1\): FAILURE
11+
^\[main\.overflow\.\d+\] line 86 arithmetic overflow on signed (to unsigned )?type conversion in \(char\)\(\(signed int\)i \+ 1\): FAILURE
1212
^\[main\.overflow\.\d+\] line 87 arithmetic overflow on signed \+ in j \+ 1: FAILURE
1313
^VERIFICATION FAILED$
1414
^EXIT=10$

0 commit comments

Comments
 (0)