diff options
Diffstat (limited to 'testsuite/synth')
-rw-r--r-- | testsuite/synth/issue1005/test.vhdl | 22 | ||||
-rwxr-xr-x | testsuite/synth/issue1005/testsuite.sh | 12 |
2 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/synth/issue1005/test.vhdl b/testsuite/synth/issue1005/test.vhdl new file mode 100644 index 000000000..0388e33f4 --- /dev/null +++ b/testsuite/synth/issue1005/test.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; +use std.env.stop; + +entity test is + generic ( + SIM : boolean := false + ); + port ( + val : in std_ulogic + ); +end entity test; + +architecture behaviour of test is +begin + process_0: process(all) + begin + if SIM and val = '1' then + stop; + end if; + end process; +end architecture behaviour; diff --git a/testsuite/synth/issue1005/testsuite.sh b/testsuite/synth/issue1005/testsuite.sh new file mode 100755 index 000000000..5643f943a --- /dev/null +++ b/testsuite/synth/issue1005/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +t=test +synth $t.vhdl -e $t > syn_$t.vhdl +analyze syn_$t.vhdl + +clean + +echo "Test successful" |