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