From b30107085c003b364fc11ba84b5e7130d0926940 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 May 2017 11:57:41 +0200 Subject: Diagnose #include directives in C/C++ lexer --- unit-tests/cc/lexer/preprocessor.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'unit-tests/cc/lexer') 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 +: +$* <>EOE != 0 +#include +EOI +stdin:1:1: error: unexpected #include directive +EOE + : nested : $* <>EOO -- cgit v1.1