From a91bd145008432fb8c5d91d94ab6f50473a277f5 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 27 Oct 2026 13:55:36 +0000 Subject: feat(preprocessor): add file-local conditional switches Co-Authored-By: Claude Opus 5.5 --- tests/iii/preprocessor-reserved/case.json | 8 ++++++++ tests/iii/preprocessor-reserved/program.cps | 1 + 2 files changed, 9 insertions(+) create mode 100644 tests/iii/preprocessor-reserved/case.json create mode 100644 tests/iii/preprocessor-reserved/program.cps (limited to 'tests/iii/preprocessor-reserved') diff --git a/tests/iii/preprocessor-reserved/case.json b/tests/iii/preprocessor-reserved/case.json new file mode 100644 index 0000000..e4d76fa --- /dev/null +++ b/tests/iii/preprocessor-reserved/case.json @@ -0,0 +1,8 @@ +{ + "errors": [ + { + "reason": "Expected identifier after DECLARE", + "line": 1 + } + ] +} diff --git a/tests/iii/preprocessor-reserved/program.cps b/tests/iii/preprocessor-reserved/program.cps new file mode 100644 index 0000000..be20fb2 --- /dev/null +++ b/tests/iii/preprocessor-reserved/program.cps @@ -0,0 +1 @@ +DECLARE PP_DEFINE : INTEGER -- cgit v1.3.1-4-g156e