Files
iverilog/ivtest/ivltests/packed_dims_invalid_class.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

29 lines
367 B
Verilog

// Invalid packed dimensions
// This should generate a error message and not crash during elaboration
typedef logic [] T1;
typedef logic [0] T2;
typedef logic [-1] T3;
typedef logic [$] T4;
class C;
logic [$] a;
T1 b;
T1 [$] c;
logic [0] d;
T2 e;
T2 [0] f;
logic [-1] g;
T3 h;
T3 [-1] i;
logic [$] j;
T4 k;
T4 [$] l;
endclass
module test;
endmodule