diff options
Diffstat (limited to 'tests/various/gen_if_null.v')
-rw-r--r-- | tests/various/gen_if_null.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/various/gen_if_null.v b/tests/various/gen_if_null.v new file mode 100644 index 000000000..a12ac6288 --- /dev/null +++ b/tests/various/gen_if_null.v @@ -0,0 +1,13 @@ +module test(x, y, z); + localparam OFF = 0; + generate + if (OFF) ; + else input x; + if (!OFF) input y; + else ; + if (OFF) ; + else ; + if (OFF) ; + input z; + endgenerate +endmodule |