Skip to content

Commit 73750a8

Browse files
Fix base_name of return' symbol to match its name
1 parent 0ea27d5 commit 73750a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

regression/cbmc/typedef-return-anon-struct1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main.c
55
activate-multi-line-match
66
EXIT=0
77
SIGNAL=0
8-
Base name\.+: return\nMode\.+: C\nType\.+: MYSTRUCT
8+
Base name\.+: return'\nMode\.+: C\nType\.+: MYSTRUCT
99
Base name\.+: fun\nMode\.+: C\nType\.+: MYSTRUCT \(\)
1010
--
1111
warning: ignoring

regression/goto-instrument-typedef/typedef-return-anon-struct1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main.c
55
activate-multi-line-match
66
EXIT=0
77
SIGNAL=0
8-
Base name\.+: return\nMode\.+: C\nType\.+: MYSTRUCT
8+
Base name\.+: return'\nMode\.+: C\nType\.+: MYSTRUCT
99
Base name\.+: fun\nMode\.+: C\nType\.+: MYSTRUCT \(\)
1010
--
1111
warning: ignoring

src/ansi-c/ansi_c_entry_point.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool generate_ansi_c_start_function(
237237
return_symbol.mode=ID_C;
238238
return_symbol.is_static_lifetime=false;
239239
return_symbol.name="return'";
240-
return_symbol.base_name="return";
240+
return_symbol.base_name = "return'";
241241
return_symbol.type=to_code_type(symbol.type).return_type();
242242

243243
symbol_table.add(return_symbol);

0 commit comments

Comments
 (0)