3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 20:21:25 +00:00

Add regression tests for new handling of comments in constants

This commit is contained in:
Marcus Comstedt 2020-03-14 11:41:09 +01:00
parent 5e94bf0291
commit dd562f29e7
2 changed files with 24 additions and 0 deletions

8
tests/various/bug1745.ys Normal file
View file

@ -0,0 +1,8 @@
logger -expect error "syntax error, unexpected TOK_CONSTVAL" 1
read_verilog <<EOT
module inverter(input a, output y);
assign y = (a == 1'b0? 1'b1 : 1'b0);
endmodule // inverter
EOT