16 lines
435 B
Systemverilog
16 lines
435 B
Systemverilog
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
|
//
|
||
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||
|
|
// any use, without warranty, 2025 by Wilson Snyder.
|
||
|
|
// SPDX-License-Identifier: CC0-1.0
|
||
|
|
|
||
|
|
module t;
|
||
|
|
int array_bad[0]; // <--- Error: Must be positive size
|
||
|
|
int array2_bad[-1]; // <--- Error: Must be positive size
|
||
|
|
sub #(1) u_sub();
|
||
|
|
endmodule
|
||
|
|
|
||
|
|
module sub #(parameter SIZE=0);
|
||
|
|
int ignore[SIZE];
|
||
|
|
endmodule
|