aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opt/opt_expr_constconn.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/opt/opt_expr_constconn.v')
-rw-r--r--tests/opt/opt_expr_constconn.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/opt/opt_expr_constconn.v b/tests/opt/opt_expr_constconn.v
new file mode 100644
index 000000000..d18b120e3
--- /dev/null
+++ b/tests/opt/opt_expr_constconn.v
@@ -0,0 +1,8 @@
+module top(...);
+
+input [7:0] A;
+output [7:0] B;
+wire [7:0] C = 3;
+assign B = A + C;
+
+endmodule