diff options
author | Tristan Gingold | 2015-09-02 18:21:33 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-09-02 18:21:33 +0200 |
commit | a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3 (patch) | |
tree | c850005a41589ef82fc98abaac904c415acd9493 /testsuite/gna/bug017/call6.vhdl | |
parent | 133686da496f0592da76a45361e70ac8d6c482ea (diff) | |
download | ghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.tar.gz ghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.tar.bz2 ghdl-a779d6b3b5f10cbee6690ae4ff7aa43b65caf5e3.zip |
Add bug017.
Diffstat (limited to 'testsuite/gna/bug017/call6.vhdl')
-rw-r--r-- | testsuite/gna/bug017/call6.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/bug017/call6.vhdl b/testsuite/gna/bug017/call6.vhdl new file mode 100644 index 0000000..c52b08b --- /dev/null +++ b/testsuite/gna/bug017/call6.vhdl @@ -0,0 +1,21 @@ +entity call6 is +end; + +architecture behav of call6 is + procedure check (s : string) is + begin + wait for 1 ns; + assert s (2) = 'a'; + end; +begin + process + variable v : integer := 2; + begin + check ("bac"); + wait for 2 ns; + check ((1 => 'e', 2 => 'a', 3 => 'c')); + report "SUCCESS"; + wait; + end process; + +end behav; |