diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-06-20 06:01:11 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-06-20 06:01:11 +0200 |
commit | 40e915ba8a1554191d4b650879d4863a703e071c (patch) | |
tree | a07a157856195709c4a94228a25d162faaf93bbc /testsuite/gna/issue371/test_string.vhdl | |
parent | 6f3f640e0571fb8f31a8622da088a0435490c359 (diff) | |
download | ghdl-40e915ba8a1554191d4b650879d4863a703e071c.tar.gz ghdl-40e915ba8a1554191d4b650879d4863a703e071c.tar.bz2 ghdl-40e915ba8a1554191d4b650879d4863a703e071c.zip |
Add testcase for #371
Diffstat (limited to 'testsuite/gna/issue371/test_string.vhdl')
-rw-r--r-- | testsuite/gna/issue371/test_string.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue371/test_string.vhdl b/testsuite/gna/issue371/test_string.vhdl new file mode 100644 index 000000000..b178a31b8 --- /dev/null +++ b/testsuite/gna/issue371/test_string.vhdl @@ -0,0 +1,20 @@ +-- VHDL source file +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity test_string is +end entity; + +architecture rtl of test_string is + signal clk : std_logic := '1'; + signal test : string (1 to 11) := "Hello World"; +begin + clk <= not clk after 10 ns; + p_test : process + begin + wait for 1 us; + test <= "hello world"; + wait; + end process; +end rtl; |