diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/runtest.sh | 1 | ||||
-rw-r--r-- | test/tests | 1 | ||||
-rw-r--r-- | test/voideffect.myr | 13 |
3 files changed, 14 insertions, 1 deletions
diff --git a/test/runtest.sh b/test/runtest.sh index da8ca39..538027b 100755 --- a/test/runtest.sh +++ b/test/runtest.sh @@ -42,7 +42,6 @@ function expectprint { fi } - function expectcompare { if [ x"" != x"$TMPDIR" ]; then t=$TMPDIR/myrtest-$1-$RANDOM @@ -148,3 +148,4 @@ F generic-in-const F aritylow F arityhigh F badop +B voideffect P pass diff --git a/test/voideffect.myr b/test/voideffect.myr new file mode 100644 index 0000000..c570b02 --- /dev/null +++ b/test/voideffect.myr @@ -0,0 +1,13 @@ +use std + +const bar = { + std.put("pass") +} + +const foo = { + -> bar() +} + +const main = { + foo() +} |