diff options
Diffstat (limited to 'testsuite/runnable')
| -rw-r--r-- | testsuite/runnable/compile_time_array_access.elna | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/runnable/compile_time_array_access.elna b/testsuite/runnable/compile_time_array_access.elna new file mode 100644 index 0000000..566f3be --- /dev/null +++ b/testsuite/runnable/compile_time_array_access.elna @@ -0,0 +1,7 @@ +var + array: const [3]Int := [3]Int{ 1, 2, 3 } + i: const Int := array[2] + +begin + assert(i = 2) +end. |
