From 7e984e3e01a377e5fe33f565c1846de3c4d98709 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 30 Nov 2014 14:33:44 +0100 Subject: mds-kbdc: detect resursive inclusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../mds-kbdc/process-includes/invalid/selfinclusion | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test-files/mds-kbdc/process-includes/invalid/selfinclusion (limited to 'test-files/mds-kbdc/process-includes/invalid/selfinclusion') diff --git a/test-files/mds-kbdc/process-includes/invalid/selfinclusion b/test-files/mds-kbdc/process-includes/invalid/selfinclusion new file mode 100644 index 0000000..5207dbd --- /dev/null +++ b/test-files/mds-kbdc/process-includes/invalid/selfinclusion @@ -0,0 +1,15 @@ +include "selfinclusion" + +# (include (@ 1 0-7) ‘.../mds/test-files/mds-kbdc/process-includes/invalid/selfinclusion’ +# (.inner +# (include (@ 1 0-7) ‘"selfinclusion"’ +# (.inner nil) +# ) +# ) +# ) +# .../test-files/mds-kbdc/process-includes/invalid/selfinclusion: error: resursive inclusion +# +# .../test-files/mds-kbdc/process-includes/invalid/selfinclusion:1:0–7: note: included from here +# include "selfinclusion" +# ^^^^^^^ + -- cgit v1.2.3-70-g09d2