aboutsummaryrefslogtreecommitdiff
path: root/tests/test/cpp/preprocessor2.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-13 10:51:31 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-13 10:51:31 +0200
commitf9e11b40856ec26d721d174384e6e3261d23e30d (patch)
tree642957dee8b58abdfcc31b30f4840d4f019731ba /tests/test/cpp/preprocessor2.scm
parentwork (diff)
downloadcalp-f9e11b40856ec26d721d174384e6e3261d23e30d.tar.gz
calp-f9e11b40856ec26d721d174384e6e3261d23e30d.tar.xz
Ensure #error works.
Diffstat (limited to 'tests/test/cpp/preprocessor2.scm')
-rw-r--r--tests/test/cpp/preprocessor2.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test/cpp/preprocessor2.scm b/tests/test/cpp/preprocessor2.scm
index 39bbd39c..9b71e1ca 100644
--- a/tests/test/cpp/preprocessor2.scm
+++ b/tests/test/cpp/preprocessor2.scm
@@ -762,8 +762,9 @@ X
")
)
-;; TODO
-;; #error
+(test-error "#error directive"
+ 'cpp-error-directive
+ (run "#error anything goes here"))
(test-group "Pragma"
(test-group "#pragma"