aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/process-includes/invalid/selfinclusion
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-30 14:33:44 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-30 14:33:44 +0100
commit7e984e3e01a377e5fe33f565c1846de3c4d98709 (patch)
treeac813b77f1dac11387bc9c3b947abee41d956b1a /test-files/mds-kbdc/process-includes/invalid/selfinclusion
parentmds-kbdc: process includes (diff)
downloadmds-7e984e3e01a377e5fe33f565c1846de3c4d98709.tar.gz
mds-7e984e3e01a377e5fe33f565c1846de3c4d98709.tar.bz2
mds-7e984e3e01a377e5fe33f565c1846de3c4d98709.tar.xz
mds-kbdc: detect resursive inclusion
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/process-includes/invalid/selfinclusion15
1 files changed, 15 insertions, 0 deletions
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"
+# ^^^^^^^
+