diff options
Diffstat (limited to 'awk/rawk/tests/test_errors.rawk')
-rw-r--r-- | awk/rawk/tests/test_errors.rawk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/awk/rawk/tests/test_errors.rawk b/awk/rawk/tests/test_errors.rawk new file mode 100644 index 0000000..2376822 --- /dev/null +++ b/awk/rawk/tests/test_errors.rawk @@ -0,0 +1,12 @@ +# This test file should fail compilation because it is missing a RAWK block +BEGIN { + print "This should fail because there's no RAWK block" +} + +$invalid_function = (x) -> { + return x * 2; +}; + +{ + print "This should not compile" +} \ No newline at end of file |