summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 15:09:52 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 15:09:52 +0200
commite999ab159ff54d45f91c8c7c10ee2367a504c233 (patch)
treefae2607121e523059a6464add123dc855eedd545 /testing.sh
parent11a2e237efbadd3877f94e4352bc894ef9e77a2b (diff)
downloadgolem-e999ab159ff54d45f91c8c7c10ee2367a504c233.tar.gz
global array
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing.sh b/testing.sh
index ca7f5e0..aa91e43 100755
--- a/testing.sh
+++ b/testing.sh
@@ -27,4 +27,5 @@ test "$1" "main() { wrt(add('A' - 'a', 'u')); wrt('\n'); } add(a, b) { return a
test "$1" "main() return 0;"
test "$1" "main() { { wrt('c'); } { wrt('b'); { wrt('A'); } wrt('B'); } wrt('\n'); }"
test "$1" "main() { local i; i = '0'; loop { wrt i; i = i + 1; if (i > '9') break; } wrt '\n'; }"
+test "$1" "global a[5]; main() {}"
rm -f build/tmp.*