File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ #include <assert.h>
2+
3+ struct S
4+ {
5+ int x ;
6+ };
7+
8+ struct T
9+ {
10+ struct S a [2 ];
11+ };
12+
13+ int main ()
14+ {
15+ struct T t ;
16+ t .a [1 ].x = 42 ;
17+ assert (t .a [1 ].x == 42 );
18+ return 0 ;
19+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ main.c
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ ^VERIFICATION SUCCESSFUL$
7+ --
8+ ^warning: ignoring
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ const boolbv_widtht::entryt &boolbv_widtht::get_entry(const typet &type) const
195195 }
196196 else if (type_id==ID_pointer)
197197 entry.total_width = type_checked_cast<pointer_typet>(type).get_width ();
198- else if (type_id==ID_symbol )
198+ else if (type_id == ID_symbol_type )
199199 entry=get_entry (ns.follow (type));
200200 else if (type_id==ID_struct_tag)
201201 entry=get_entry (ns.follow_tag (to_struct_tag_type (type)));
@@ -209,6 +209,8 @@ const boolbv_widtht::entryt &boolbv_widtht::get_entry(const typet &type) const
209209 }
210210 else if (type_id==ID_string)
211211 entry.total_width =32 ;
212+ else if (type_id != ID_empty)
213+ UNIMPLEMENTED;
212214
213215 return entry;
214216}
You can’t perform that action at this time.
0 commit comments