Files
sv2v/test/error/run_on_decl_package.sv
Zachary Snow 3eefd03c8d additional declaration parsing errors
- general refactoring in decl parsing
- restrict charge strength to trireg
- require const vars to be initialized
- forbid const net declarations
- disallow run-on declarations in packages and classes
2021-07-09 15:41:17 -04:00

10 lines
205 B
Systemverilog

// pattern: run_on_decl_package\.sv:3:16: Parse error: unexpected token in declaration
package P;
integer x, byte y;
localparam Z = 1;
endpackage
module top;
initial $display(P::Z);
endmodule