mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
const2ast: add diagnostics tests
This commit is contained in:
parent
41107e5473
commit
49cd3887a7
4 changed files with 17 additions and 0 deletions
6
tests/verilog/constparser_g.ys
Normal file
6
tests/verilog/constparser_g.ys
Normal file
|
@ -0,0 +1,6 @@
|
|||
logger -expect prefix-error "<<EOT:2: ERROR: syntax error, unexpected invalid token, expecting TOK_BASED_CONSTVAL" 1
|
||||
read_verilog <<EOT
|
||||
module test (y);
|
||||
output signed [2:0] y = 1'bg;
|
||||
endmodule
|
||||
EOT
|
Loading…
Add table
Add a link
Reference in a new issue