mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-11 19:53:35 +00:00
preproc: test coverage for #2712
This commit is contained in:
parent
b7ea71e6e3
commit
0ccc7229c0
7
tests/verilog/ifdef_nest.ys
Normal file
7
tests/verilog/ifdef_nest.ys
Normal file
|
@ -0,0 +1,7 @@
|
|||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
`ifdef b
|
||||
`endif
|
||||
`else
|
||||
`endif
|
||||
EOF
|
4
tests/verilog/ifdef_unterminated.ys
Normal file
4
tests/verilog/ifdef_unterminated.ys
Normal file
|
@ -0,0 +1,4 @@
|
|||
logger -expect error "Unterminated preprocessor conditional!" 1
|
||||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
EOF
|
7
tests/verilog/unmatched_endif_2.ys
Normal file
7
tests/verilog/unmatched_endif_2.ys
Normal file
|
@ -0,0 +1,7 @@
|
|||
logger -expect error "Found `endif outside of macro conditional branch!" 1
|
||||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
`else
|
||||
`endif
|
||||
`endif
|
||||
EOF
|
Loading…
Reference in a new issue