aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1122/repro2.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1122/repro2.vhdl')
-rw-r--r--testsuite/synth/issue1122/repro2.vhdl22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/synth/issue1122/repro2.vhdl b/testsuite/synth/issue1122/repro2.vhdl
new file mode 100644
index 000000000..7492e36c9
--- /dev/null
+++ b/testsuite/synth/issue1122/repro2.vhdl
@@ -0,0 +1,22 @@
+entity repro2 is
+ port (clk : bit;
+ rst : bit;
+ d : bit;
+ q : out bit);
+end repro2;
+
+architecture behav of repro2 is
+ constant c : bit := '1';
+ signal s : bit := c;
+begin
+ process (clk)
+ begin
+ if rst = '1' then
+ s <= c;
+ elsif clk = '1' and clk'event then
+ s <= d;
+ end if;
+ end process;
+
+ q <= s;
+end behav;