Skip to content

Commit 7f0dc8c

Browse files
committed
Create array_basic_vm.lyte
1 parent e62fe94 commit 7f0dc8c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// args: -r
2+
// expected stdout:
3+
// assert(true)
4+
// vm execution successful
5+
assert(cond: bool) → void
6+
7+
main {
8+
var a : [i32; 1]
9+
a[0] = 42
10+
assert(a[0] == 42)
11+
}

0 commit comments

Comments
 (0)