File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
regression/verilog/typedef Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,27 @@ module main();
5
5
6
6
// as 'module_item'
7
7
typedef bit my_type2 ;
8
+ my_type2 my_type2_var;
8
9
9
10
function some_function ;
10
11
// as 'block_item'
11
12
typedef bit my_type3 ;
12
13
begin
14
+ my_type3 my_type3_var;
13
15
end
14
16
endfunction
15
17
18
+ task some_task ;
19
+ // as 'block_item'
20
+ typedef bit my_type4 ;
21
+ begin
22
+ my_type4 my_type4_var;
23
+ end
24
+ endtask
25
+
26
+ always @ my_type2_var begin : named_block
27
+ typedef bit my_type5 ;
28
+ my_type5 my_type5_var;
29
+ end
30
+
16
31
endmodule
Original file line number Diff line number Diff line change @@ -1706,7 +1706,7 @@ function_declaration:
1706
1706
TOK_FUNCTION
1707
1707
automatic_opt signing_opt range_or_type_opt
1708
1708
function_identifier
1709
- { push_scope(stack_expr($1 ).get(ID_identifier), " ." ); }
1709
+ { push_scope(stack_expr($5 ).get(ID_identifier), " ." ); }
1710
1710
list_of_ports_opt ' ;'
1711
1711
tf_item_declaration_brace statement
1712
1712
TOK_ENDFUNCTION
You can’t perform that action at this time.
0 commit comments