mirror of
https://github.com/verilator/verilator.git
synced 2025-01-04 05:37:48 +00:00
Tests: Update t_class_class
This commit is contained in:
parent
d41efb189d
commit
96306b7630
@ -6,12 +6,12 @@
|
||||
|
||||
// Note UVM internals do not require classes-in-classes
|
||||
package P;
|
||||
class Cls;
|
||||
int imembera;
|
||||
int imemberb;
|
||||
class Cls #(type STORE_T=string);
|
||||
STORE_T imembera;
|
||||
STORE_T imemberb;
|
||||
class SubCls;
|
||||
int smembera;
|
||||
int smemberb;
|
||||
STORE_T smembera;
|
||||
STORE_T smemberb;
|
||||
// TODO put extern function here or in t_class_extern.v to check link
|
||||
endclass : SubCls
|
||||
SubCls sc;
|
||||
@ -19,7 +19,7 @@ endclass : Cls
|
||||
endpackage : P
|
||||
|
||||
module t (/*AUTOARG*/);
|
||||
P::Cls c;
|
||||
P::Cls#(int) c;
|
||||
initial begin
|
||||
c = new;
|
||||
c.imembera = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user