diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-03-02 07:46:07 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-03-02 07:46:41 +0100 |
commit | 0c080e2d4a141d0c8fb447891f6520fb2712e4ae (patch) | |
tree | 4bd6cd9f57df4f55d5373189604a11a5b66e1171 /testsuite/synth/issue2369/bug.vhdl | |
parent | a4c35e81f9981ae14ba358269335266b1ec620bf (diff) | |
download | ghdl-0c080e2d4a141d0c8fb447891f6520fb2712e4ae.tar.gz ghdl-0c080e2d4a141d0c8fb447891f6520fb2712e4ae.tar.bz2 ghdl-0c080e2d4a141d0c8fb447891f6520fb2712e4ae.zip |
testsuite/synth: add a test for #2369
Diffstat (limited to 'testsuite/synth/issue2369/bug.vhdl')
-rw-r--r-- | testsuite/synth/issue2369/bug.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/synth/issue2369/bug.vhdl b/testsuite/synth/issue2369/bug.vhdl new file mode 100644 index 000000000..df3e29787 --- /dev/null +++ b/testsuite/synth/issue2369/bug.vhdl @@ -0,0 +1,15 @@ +entity bug is + port (clk, x, y : in bit; z : out bit); +end entity bug; + +architecture RTL of bug is +begin + +process (clk) +begin + if rising_edge(clk) then + z <= x when y else unaffected; + end if; +end process; + +end architecture RTL; |