mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
Check that all kinds of invalid module port declarations, where the declaration conflicts with previous declarations, are detected as errors. They should not crash the application nor should they result in successful elaboration. The tests are created for corner cases that previously resulted in incorrect behavior. Signed-off-by: Lars-Peter Clausen <[email protected]>
9 lines
191 B
Verilog
9 lines
191 B
Verilog
// Check that declaring both a net and a variable for a signal that was
|
|
// previously declared as a non-ANSI module port is an error.
|
|
|
|
module test(x);
|
|
input x;
|
|
wire x;
|
|
reg x;
|
|
endmodule
|