diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-06-20 20:56:28 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-06-21 06:33:24 +0200 |
commit | a83d1e6682d63b99d1a83d7a73dc5079cf781b25 (patch) | |
tree | 8b13437d61f978e76594f11f483b5becd693fd7f /testsuite/gna/issue2103/repro5.vhdl | |
parent | 12f428f27ba4bcec645b9f904aff8b5632420ad4 (diff) | |
download | ghdl-a83d1e6682d63b99d1a83d7a73dc5079cf781b25.tar.gz ghdl-a83d1e6682d63b99d1a83d7a73dc5079cf781b25.tar.bz2 ghdl-a83d1e6682d63b99d1a83d7a73dc5079cf781b25.zip |
testsuite/gna: add a test for #2103
Diffstat (limited to 'testsuite/gna/issue2103/repro5.vhdl')
-rw-r--r-- | testsuite/gna/issue2103/repro5.vhdl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gna/issue2103/repro5.vhdl b/testsuite/gna/issue2103/repro5.vhdl new file mode 100644 index 000000000..9eca4a391 --- /dev/null +++ b/testsuite/gna/issue2103/repro5.vhdl @@ -0,0 +1,13 @@ +package repro4 is + alias n1 is natural; + alias n2 is natural; + + function f (arg : bit; length : n1) return bit; +end; + +package body repro4 is + function f (arg : bit; length : n2) return bit is + begin + return arg; + end; +end; |