summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-12 10:32:21 +0200
committerkdx <kikoodx@paranoici.org>2023-06-12 10:32:21 +0200
commit07fe6662c369f85c4fa8c0d4a002bd42258851f0 (patch)
tree7338e962d31ef38f0e5eed1fafa05ff0b0cde982 /testing.sh
parent3e52e6d5d508e855c67edf33757299ca8d46c9e4 (diff)
downloadgolem-07fe6662c369f85c4fa8c0d4a002bd42258851f0.tar.gz
ref generation
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing.sh b/testing.sh
index 11a9290..98b8377 100755
--- a/testing.sh
+++ b/testing.sh
@@ -48,4 +48,6 @@ test "$1" "main() { wrt('0' + (9 <= 7)); wrt '\n'; }"
test "$1" "main() { wrt('0' + (5 >= 7)); wrt '\n'; }"
test "$1" "main() { wrt('0' + (7 >= 7)); wrt '\n'; }"
test "$1" "main() { wrt('0' + (9 >= 7)); wrt '\n'; }"
+test "$1" "main() { local a; dbg a; inc(&a); dbg a; } inc(p) { [p] = [p] + 1; }"
+test "$1" "global a; main() { dbg a; inc(&a); dbg a; } inc(p) { [p] = [p] + 1; }"
rm -f build/tmp.*