From e5cf1a90f1101773ca06750e829feb554ec632f1 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 5 Feb 2026 19:23:10 +0000 Subject: [PATCH] Add test that connects a wire with `init` to a constant --- tests/opt/opt_clean_init_const.ys | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/opt/opt_clean_init_const.ys diff --git a/tests/opt/opt_clean_init_const.ys b/tests/opt/opt_clean_init_const.ys new file mode 100644 index 000000000..1b3d5db63 --- /dev/null +++ b/tests/opt/opt_clean_init_const.ys @@ -0,0 +1,9 @@ +read_rtlil << EOT +module \top + attribute \init 1'0 + wire \w + + connect \w 1'0 +end +EOT +opt_clean