diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-06-16 06:52:55 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-06-16 06:52:55 +0200 |
commit | 9fc52765b1e9d75ffbb4700bb60df2ccf5c6fcc5 (patch) | |
tree | 794132fd140c549d8c936797ef65b3be2d118f97 /testsuite/gna/issue2065/repro.vhdl | |
parent | e260d4cf6b985a99cfc2a0af5ef4b5e03b51cff1 (diff) | |
download | ghdl-9fc52765b1e9d75ffbb4700bb60df2ccf5c6fcc5.tar.gz ghdl-9fc52765b1e9d75ffbb4700bb60df2ccf5c6fcc5.tar.bz2 ghdl-9fc52765b1e9d75ffbb4700bb60df2ccf5c6fcc5.zip |
testsuite/gna: add a test for #2065
Diffstat (limited to 'testsuite/gna/issue2065/repro.vhdl')
-rw-r--r-- | testsuite/gna/issue2065/repro.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/issue2065/repro.vhdl b/testsuite/gna/issue2065/repro.vhdl new file mode 100644 index 000000000..a6dc56d26 --- /dev/null +++ b/testsuite/gna/issue2065/repro.vhdl @@ -0,0 +1,15 @@ +entity repro is + generic (depth : natural := 5); + port (inp : bit := '0'); +end entity; + +architecture mult of repro is + signal s : bit; +begin + gen: if depth > 0 generate + inst : entity work.repro + generic map (depth => depth - 1) + port map(inp => s and inp); + end generate; +end architecture mult; + |