mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 01:53:53 +02:00
preproc: test coverage for #2712
This commit is contained in:
committed by
Zachary Snow
parent
b7ea71e6e3
commit
0ccc7229c0
@@ -0,0 +1,7 @@
|
||||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
`ifdef b
|
||||
`endif
|
||||
`else
|
||||
`endif
|
||||
EOF
|
||||
@@ -0,0 +1,4 @@
|
||||
logger -expect error "Unterminated preprocessor conditional!" 1
|
||||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
EOF
|
||||
@@ -0,0 +1,7 @@
|
||||
logger -expect error "Found `endif outside of macro conditional branch!" 1
|
||||
read_verilog <<EOF
|
||||
`ifndef a
|
||||
`else
|
||||
`endif
|
||||
`endif
|
||||
EOF
|
||||
Reference in New Issue
Block a user