aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple/ifdef_2.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple/ifdef_2.v')
-rw-r--r--tests/simple/ifdef_2.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/simple/ifdef_2.v b/tests/simple/ifdef_2.v
new file mode 100644
index 000000000..9fae7570d
--- /dev/null
+++ b/tests/simple/ifdef_2.v
@@ -0,0 +1,21 @@
+module ifdef_2_top(o1, o2, o3);
+
+output wire o1;
+
+`define COND_1
+`define COND_2
+`define COND_3
+
+`ifdef COND_1
+ output wire o2;
+`elsif COND_2
+ input wire dne1;
+`elsif COND_3
+ input wire dne2;
+`else
+ input wire dne3;
+`endif
+
+output wire o3;
+
+endmodule