Skip to content

Commit

Permalink
Make tests pass when char is unsigned
Browse files Browse the repository at this point in the history
Not all platforms have signed `char` types.
  • Loading branch information
tautschnig committed Feb 20, 2024
1 parent 1939544 commit bc777dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regression/cbmc-cpp/Pointer_Conversion2/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <cassert>
char a[100];
signed char a[100];

void f(const signed char x[])
{
Expand Down
2 changes: 1 addition & 1 deletion regression/cbmc/pragma_cprover_enable_all/test.desc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ main.c
^\[main\.division-by-zero\.\d+\] line 84 division by zero in x / den: FAILURE
^\[main\.overflow\.\d+\] line 84 arithmetic overflow on floating-point division in x / den: FAILURE
^\[main\.enum-range-check\.\d+\] line 85 enum range check in \(ABC\)10: FAILURE
^\[main\.overflow\.\d+\] line 86 arithmetic overflow on signed type conversion in \(char\)\(\(signed int\)i \+ 1\): FAILURE
^\[main\.overflow\.\d+\] line 86 arithmetic overflow on signed (to unsigned )?type conversion in \(char\)\(\(signed int\)i \+ 1\): FAILURE
^\[main\.overflow\.\d+\] line 87 arithmetic overflow on signed \+ in j \+ 1: FAILURE
^VERIFICATION FAILED$
^EXIT=10$
Expand Down

0 comments on commit bc777dc

Please sign in to comment.