File tree Expand file tree Collapse file tree 6 files changed +75
-0
lines changed
regression/goto-instrument-typedef Expand file tree Collapse file tree 6 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ typedef union tag_union_name
3
+ {
4
+ int x ;
5
+ float y ;
6
+ } MYUNION ;
7
+
8
+ void fun (union tag_union_name tag_union_param , MYUNION myunion_param )
9
+ {
10
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ "--show-symbol-table"
4
+ // Enable multi-line checking
5
+ activate-multi-line-match
6
+ EXIT=0
7
+ SIGNAL=0
8
+ Base name\.+: tag_union_param\nMode\.+: C\nType\.+: union tag_union_name
9
+ Base name\.+: myunion_param\nMode\.+: C\nType\.+: MYUNION
10
+ --
11
+ warning: ignoring
Original file line number Diff line number Diff line change
1
+
2
+ typedef union tag_union_name
3
+ {
4
+ int x ;
5
+ float y ;
6
+ } MYUNION ;
7
+
8
+ union tag_union_name fun ()
9
+ {
10
+ union tag_union_name return_variable = {1 };
11
+ return return_variable ;
12
+ }
13
+
14
+ MYUNION fun2 ()
15
+ {
16
+ MYUNION return_variable = {1 };
17
+ return return_variable ;
18
+ }
19
+
20
+
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ "--show-symbol-table"
4
+ // Enable multi-line checking
5
+ activate-multi-line-match
6
+ EXIT=0
7
+ SIGNAL=0
8
+ Base name\.+: fun\nMode\.+: C\nType\.+: union tag_union_name \(\)
9
+ Base name\.+: fun2\nMode\.+: C\nType\.+: MYUNION \(\)
10
+ --
11
+ warning: ignoring
Original file line number Diff line number Diff line change
1
+
2
+ typedef union tag_union_name
3
+ {
4
+ int x ;
5
+ float y ;
6
+ } MYUNION ;
7
+
8
+ void fun ()
9
+ {
10
+ union tag_union_name tag_union_var = {1 };
11
+ MYUNION myunion_var = {.y = 2.1f };
12
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ "--show-symbol-table"
4
+ // Enable multi-line checking
5
+ activate-multi-line-match
6
+ EXIT=0
7
+ SIGNAL=0
8
+ Base name\.+: tag_union_var\nMode\.+: C\nType\.+: union tag_union_name
9
+ Base name\.+: myunion_var\nMode\.+: C\nType\.+: MYUNION
10
+ --
11
+ warning: ignoring
You can’t perform that action at this time.
0 commit comments