File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
regression/ansi-c/gcc_attributes1 Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ void my_f1()
39
39
while (1 );
40
40
}
41
41
42
+ inline void a () __attribute__((noreturn ))
43
+ {
44
+ }
45
+
42
46
//
43
47
// unused
44
48
//
Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ void ansi_c_declarationt::to_symbol(
141
141
symbol.is_weak =get_is_weak ();
142
142
143
143
// is it a function?
144
- const typet &type = symbol.type .id () == ID_merged_type
145
- ? to_merged_type (symbol.type ).last_type ()
146
- : symbol.type ;
144
+ typet &type = symbol.type .id () == ID_merged_type
145
+ ? to_merged_type (symbol.type ).last_type ()
146
+ : symbol.type ;
147
147
148
148
if (type.id () == ID_code && !symbol.is_type )
149
149
{
@@ -153,7 +153,7 @@ void ansi_c_declarationt::to_symbol(
153
153
symbol.is_file_local =get_is_static ();
154
154
155
155
if (get_is_inline ())
156
- to_code_type (symbol. type ).set_inlined (true );
156
+ to_code_type (type).set_inlined (true );
157
157
158
158
if (
159
159
config.ansi_c .mode == configt::ansi_ct::flavourt::GCC ||
You can’t perform that action at this time.
0 commit comments