Skip to content

Commit 376fd21

Browse files
author
Daniel Kroening
committed
print string constants
1 parent 9cc0411 commit 376fd21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ansi-c/expr2c.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,10 @@ std::string expr2ct::convert_constant(
23002300
return convert(src.op0(), precedence);
23012301
}
23022302
}
2303+
else if(type.id()==ID_string)
2304+
{
2305+
return '"'+id2string(src.get_value())+'"';
2306+
}
23032307
else
23042308
return convert_norep(src, precedence);
23052309

0 commit comments

Comments
 (0)