diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-05-10 20:54:35 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-05-10 20:54:35 +0200 |
commit | 358323160ff607b668539f8e4a8d3f2156ad9e37 (patch) | |
tree | bb531bff1ac57987de1fb2d7bfa1a21c3b56d4b6 /testsuite | |
parent | 0ce4e356a842f816439f3393624387e825cbb3ae (diff) | |
download | ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.tar.gz ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.tar.bz2 ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.zip |
Ticket 46 reproducer.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/ticket46/bug.vhdl | 24 | ||||
-rwxr-xr-x | testsuite/gna/ticket46/testsuite.sh | 11 |
2 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/gna/ticket46/bug.vhdl b/testsuite/gna/ticket46/bug.vhdl new file mode 100644 index 000000000..1f2b8198c --- /dev/null +++ b/testsuite/gna/ticket46/bug.vhdl @@ -0,0 +1,24 @@ +entity ent is +end entity; + +architecture a of ent is + type boolean_vec_t is array (integer range <>) of boolean; + + function resolved(vec : boolean_vec_t) return boolean is + begin + return true; + end function; + + subtype resolved_boolean_t is resolved boolean; + + signal sig : resolved_boolean_t; + +begin + main : process + begin + if sig then + end if; + + wait until sig; + end process; +end architecture; diff --git a/testsuite/gna/ticket46/testsuite.sh b/testsuite/gna/ticket46/testsuite.sh new file mode 100755 index 000000000..ea37bb64d --- /dev/null +++ b/testsuite/gna/ticket46/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze --std=02 bug.vhdl +analyze --std=08 bug.vhdl + +GHDL_STD_FLAGS=--std=02 clean +GHDL_STD_FLAGS=--std=08 clean + +echo "Test successful" |