mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +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.
29 lines
367 B
Verilog
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
|