diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-10 16:04:29 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-10 16:04:29 +0200 |
commit | c9dd409007a4c87bac3c497fd2df2e7d333b8609 (patch) | |
tree | a24b079b8dcca2b0ca64e5129dacb942d3ccb1a4 /testing.sh | |
parent | ceabe04d92a8eb1d57206fd9138fd6548f5ed3b6 (diff) | |
download | golem-c9dd409007a4c87bac3c497fd2df2e7d333b8609.tar.gz |
assign to array
Diffstat (limited to 'testing.sh')
-rwxr-xr-x | testing.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -31,4 +31,5 @@ test "$1" "global a[5] = 4; main() { wrt([a] + '0'); wrt '\n'; }" test "$1" "global a[5] = 4; main() { wrt([a + 1] + '0'); wrt '\n'; }" test "$1" "global a[5] = 4; main() { wrt([a + 4] + '0'); wrt '\n'; }" test "$1" "global a[5] = 4; main() { wrt([a + 5] + '0'); wrt '\n'; }" +test "$1" "global a[3]; main() { [a] = 'U'; [a+1] = 'w'; [a+2] = '\n'; wrt[a]; wrt[a+1]; wrt[a]; wrt[a+2]; }" rm -f build/tmp.* |