diff options
author | Tristan Gingold | 2015-09-10 20:21:39 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-09-10 20:21:39 +0200 |
commit | 0e257fe7341a44f097ea282c0cbabda42f4ecc41 (patch) | |
tree | 9bcb968c918a0308b9e00255ac3a69c3653bfd18 /testsuite/gna/bug017/case1.vhdl | |
parent | ade2729c338050c7b248ff1b0ac7e7118083597c (diff) | |
download | ghdl-0e257fe7341a44f097ea282c0cbabda42f4ecc41.tar.gz ghdl-0e257fe7341a44f097ea282c0cbabda42f4ecc41.tar.bz2 ghdl-0e257fe7341a44f097ea282c0cbabda42f4ecc41.zip |
Add bug017 test cases.
Diffstat (limited to 'testsuite/gna/bug017/case1.vhdl')
-rw-r--r-- | testsuite/gna/bug017/case1.vhdl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/case1.vhdl b/testsuite/gna/bug017/case1.vhdl new file mode 100644 index 0000000..214cbf7 --- /dev/null +++ b/testsuite/gna/bug017/case1.vhdl @@ -0,0 +1,31 @@ +entity case1 is +end; + +architecture behav of case1 is +begin + process + begin + for i in 1 to 10 loop + case i is + when 1 => + report "one"; + wait for 1 ns; + when 2 => + report "two"; + wait for 2 ns; + when 3 => + report "three"; + wait for 3 ns; + when 4 to 9 => + report "a big digit"; + wait for 5 ns; + when others => + report "a number"; -- including 0. + wait for 10 ns; + end case; + end loop; + report "SUCCESS"; + wait; + end process; + +end behav; |