diff options
Diffstat (limited to 'src/ortho/oread/tests/run_declare3.on')
-rw-r--r-- | src/ortho/oread/tests/run_declare3.on | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ortho/oread/tests/run_declare3.on b/src/ortho/oread/tests/run_declare3.on new file mode 100644 index 000000000..85684a249 --- /dev/null +++ b/src/ortho/oread/tests/run_declare3.on @@ -0,0 +1,18 @@ +type __ghdl_int is unsigned (32); + +public function main (a : __ghdl_int) return __ghdl_int +declare + local var b : __ghdl_int; + local var z : __ghdl_int; +begin + b := a; + declare + local var g : __ghdl_int; + local var c : __ghdl_int; + begin + c := b; + g := c; + z := g +# c; + end; + return z +# 1; +end; |