mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 05:47:31 +02:00
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.
26 lines
386 B
Verilog
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
|