preproc: test coverage for #2712

This commit is contained in:
Zachary Snow
2021-03-30 12:23:18 -04:00
committed by Zachary Snow
parent b7ea71e6e3
commit 0ccc7229c0
3 changed files with 18 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
read_verilog <<EOF
`ifndef a
`ifdef b
`endif
`else
`endif
EOF
+4
View File
@@ -0,0 +1,4 @@
logger -expect error "Unterminated preprocessor conditional!" 1
read_verilog <<EOF
`ifndef a
EOF
+7
View 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