diff options
Diffstat (limited to 'tests/iii/missing-endif')
| -rw-r--r-- | tests/iii/missing-endif/case.json | 8 | ||||
| -rw-r--r-- | tests/iii/missing-endif/notes.md | 5 | ||||
| -rw-r--r-- | tests/iii/missing-endif/program.cps | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/iii/missing-endif/case.json b/tests/iii/missing-endif/case.json new file mode 100644 index 0000000..8eb640c --- /dev/null +++ b/tests/iii/missing-endif/case.json @@ -0,0 +1,8 @@ +{ + "errors": [ + { + "reason": "expected\\ ENDIF", + "line": 4 + } + ] +} diff --git a/tests/iii/missing-endif/notes.md b/tests/iii/missing-endif/notes.md new file mode 100644 index 0000000..e37304e --- /dev/null +++ b/tests/iii/missing-endif/notes.md @@ -0,0 +1,5 @@ +# missing-endif + +CIE p. 18 IF requires ENDIF. + +Require exit 1, the stated cause and source line on the same diagnostic, exactly one compilation termination line, and preservation of absent/existing outputs for both native and IR requests. Missing block delimiters are located at EOF (the line after the final newline). diff --git a/tests/iii/missing-endif/program.cps b/tests/iii/missing-endif/program.cps new file mode 100644 index 0000000..f5d97ac --- /dev/null +++ b/tests/iii/missing-endif/program.cps @@ -0,0 +1,3 @@ +// The IF block never closes. +IF TRUE THEN + OUTPUT 1 |
