blob: 5326ce73cf517d0db542d03f60a7df45358e34d4 [file] [log] [blame]
/*
:name: static_methods
:description: static class methods test
:should_fail: 0
:tags: 8.10
*/
module class_tb ();
class test_cls;
static int id = 0;
static function int next_id();
next_id = ++id;
endfunction
endclass
test_cls test_obj0;
test_cls test_obj1;
initial begin
test_obj0 = new;
test_obj1 = new;
$display(test_obj0.next_id());
$display(test_obj1.next_id());
end
endmodule