Files
iverilog/ivtest/ivltests/sv_package_implicit_var2.v
T
Lars-Peter Clausen 35c69366a5 Add regression tests for implicit variable declarations in packages
Check that it is not possible to declare a variable in a package without an
explicit data type for the variable.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-04-09 09:15:23 +02:00

7 lines
179 B
Verilog

// Check that it is not possible to declare a variable in a package without an explicit data
// type for the variable.
pacakge P;
[3:0] x; // This is a syntax error
endpackage