Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions regression/cbmc/unsigned1/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
int main()
{
unsigned x;
x=0u;
return 0;
}
8 changes: 8 additions & 0 deletions regression/cbmc/unsigned1/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CORE
main.c
--show-goto-functions
^EXIT=0$
^SIGNAL=0$
--
00u
^warning: ignoring
2 changes: 1 addition & 1 deletion src/ansi-c/literals/convert_integer_literal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exprt convert_integer_literal(const std::string &src)
std::string without_prefix(src, 2, std::string::npos);
value=string2integer(without_prefix, 2);
}
else if(src.size()>=2 && src[0]=='0')
else if(src.size()>=2 && src[0]=='0' && isdigit(src[1]))
{
// octal
base=8;
Expand Down