diff options
author | Tristan Gingold | 2015-05-10 20:54:35 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-05-10 20:54:35 +0200 |
commit | 358323160ff607b668539f8e4a8d3f2156ad9e37 (patch) | |
tree | bb531bff1ac57987de1fb2d7bfa1a21c3b56d4b6 /testsuite/gna/ticket46/bug.vhdl | |
parent | 0ce4e356a842f816439f3393624387e825cbb3ae (diff) | |
download | ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.tar.gz ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.tar.bz2 ghdl-358323160ff607b668539f8e4a8d3f2156ad9e37.zip |
Ticket 46 reproducer.
Diffstat (limited to 'testsuite/gna/ticket46/bug.vhdl')
-rw-r--r-- | testsuite/gna/ticket46/bug.vhdl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket46/bug.vhdl b/testsuite/gna/ticket46/bug.vhdl new file mode 100644 index 0000000..1f2b819 --- /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; |