mirror of https://github.com/YosysHQ/yosys.git
preproc: test coverage for #2712
This commit is contained in:
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
|
Loading…
Reference in New Issue