diff options
Diffstat (limited to 'testsuite/gna/issue2104/e2c.vhdl')
-rw-r--r-- | testsuite/gna/issue2104/e2c.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/issue2104/e2c.vhdl b/testsuite/gna/issue2104/e2c.vhdl new file mode 100644 index 000000000..e3ecae001 --- /dev/null +++ b/testsuite/gna/issue2104/e2c.vhdl @@ -0,0 +1,15 @@ +entity e2c is + generic (gen1 : natural := 5); +end; + +architecture a of e2c is + function outer(arg : integer) return integer is + function inner1(arg : integer) return integer is + begin + return arg + gen1; + end; + begin + return inner1(arg + 3); + end; +begin +end; |