Add regression test for creating instances of virtual classes
Check that an error is reported when trying to create an object of a virtual class. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
e0ec2ed386
commit
569ba887b3
|
|
@ -0,0 +1,15 @@
|
||||||
|
// Check that an error is reported when trying to create an object of a virtual
|
||||||
|
// class.
|
||||||
|
|
||||||
|
module test;
|
||||||
|
|
||||||
|
virtual class C;
|
||||||
|
endclass
|
||||||
|
|
||||||
|
C c;
|
||||||
|
|
||||||
|
initial begin
|
||||||
|
c = new; // This should fail
|
||||||
|
end
|
||||||
|
|
||||||
|
endmodule
|
||||||
|
|
@ -554,6 +554,7 @@ sv_class_static_prop3 normal,-g2009 ivltests
|
||||||
sv_class_super1 normal,-g2009 ivltests
|
sv_class_super1 normal,-g2009 ivltests
|
||||||
sv_class_super2 normal,-g2009 ivltests
|
sv_class_super2 normal,-g2009 ivltests
|
||||||
sv_class_task1 normal,-g2009 ivltests
|
sv_class_task1 normal,-g2009 ivltests
|
||||||
|
sv_class_virt_new_fail CE,-g2009 ivltests
|
||||||
sv_darray1 normal,-g2009 ivltests
|
sv_darray1 normal,-g2009 ivltests
|
||||||
sv_darray2 normal,-g2009 ivltests
|
sv_darray2 normal,-g2009 ivltests
|
||||||
sv_darray3 normal,-g2009 ivltests
|
sv_darray3 normal,-g2009 ivltests
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue