Add regression test for empty class item

Check that the empty class item is supported by the parser.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-03-11 21:25:18 +01:00
parent 3939126625
commit 9fd91a8df8
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,22 @@
// Check that empty item declarations are supported for classes
module test;
class C;
;
int x;;
task test;
$display("PASSED");
endtask;
;
endclass
C c;
initial begin
c = new;
c.test;
end
endmodule

View File

@ -442,6 +442,7 @@ sv_class21 normal,-g2009 ivltests
sv_class22 normal,-g2009 ivltests
sv_class23 normal,-g2009 ivltests
sv_class24 normal,-g2009 ivltests
sv_class_empty_item normal,-g2009 ivltests
sv_class_extends_scoped normal,-g2009 ivltests
sv_class_localparam normal,-g2009 ivltests
sv_class_new_init normal,-g2009 ivltests

View File

@ -365,6 +365,7 @@ sv_class21 CE,-g2009 ivltests
sv_class22 CE,-g2009 ivltests
sv_class23 CE,-g2009 ivltests
sv_class24 CE,-g2009 ivltests
sv_class_empty_item CE,-g2009 ivltests
sv_class_extends_scoped CE,-g2009 ivltests
sv_class_localparam CE,-g2009 ivltests
sv_class_new_init CE,-g2009 ivltests