diff options
Diffstat (limited to 'tiger-compiler/tests/good/array-of-alias.tig')
| -rw-r--r-- | tiger-compiler/tests/good/array-of-alias.tig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tiger-compiler/tests/good/array-of-alias.tig b/tiger-compiler/tests/good/array-of-alias.tig new file mode 100644 index 0000000..f90f1cb --- /dev/null +++ b/tiger-compiler/tests/good/array-of-alias.tig @@ -0,0 +1,9 @@ +/* arr1 is valid since expression 0 is int = myint */ +let + type myint = int + type arrtype = array of myint + + var arr1 : arrtype := arrtype [10] of 0 +in + arr1 +end |
