Files
iverilog/ivtest/ivltests/br1004.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

26 lines
386 B
Verilog

package foobar;
class aclass;
bit tested = 0;
task test;
begin
$display("Testing classes in packages");
tested = 1;
end
endtask
endclass
aclass bar = new;
endpackage
module test;
import foobar::*;
initial begin
bar.test;
if (bar.tested)
$display("PASSED");
else
$display("FAILED");
end
endmodule