index
:
elna
assembly
cpp
haskell
Elna programming language compiles simple mathematical operations to RISC-V code.
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
testsuite
/
runnable
/
compile_time_array_access.elna
blob: 4d592159a935248176e4ee7ebc2ee417298d3916 (
plain
)
1
2
3
4
5
6
7
var array: const [3]Int := [1, 2, 3] i: const Int := array[2] begin assert(i = 2) end.