test: Add test case for array offsets in variables

This commit is contained in:
overflowerror 2024-05-02 14:30:33 +02:00
parent 14edad9a88
commit 731ab2ff7a
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,6 @@
var a = []{'a', 'b', 'c', 'd'};
var b = a[1];
var c = b[0];
print(c, '\n');

View file

@ -0,0 +1,4 @@
>>>>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]<[-<<<<+>>>>>+<]>[-<+>]<[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]<[-<<<+>>>>+<]>[-<+>]<[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]<[-<<+>>>+<]>[-<+>]<[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]<[-<+>>+<]>[-<+>]
<[-]++++++++++<<<.>>>.