aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-28 11:57:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-28 11:57:41 +0200
commitb30107085c003b364fc11ba84b5e7130d0926940 (patch)
tree4defb98a3e707e1ab3137ccb555d85b186001382 /unit-tests/cc
parent2e19434e09b819105055ddc8e58f69db98ec8669 (diff)
Diagnose #include directives in C/C++ lexer
Diffstat (limited to 'unit-tests/cc')
-rw-r--r--unit-tests/cc/lexer/preprocessor.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/unit-tests/cc/lexer/preprocessor.test b/unit-tests/cc/lexer/preprocessor.test
index a3fab9f..13b8baf 100644
--- a/unit-tests/cc/lexer/preprocessor.test
+++ b/unit-tests/cc/lexer/preprocessor.test
@@ -55,6 +55,14 @@ EOI
';' test.cxx:5:1
EOO
+: include
+:
+$* <<EOI 2>>EOE != 0
+#include <foo/bar>
+EOI
+stdin:1:1: error: unexpected #include directive
+EOE
+
: nested
:
$* <<EOI >>EOO