aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-08-08 18:40:39 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-08-08 18:40:39 +0200
commit77b4fdcada5f3cefdad3d5b6553763a504f06283 (patch)
tree18460d8907330cca3c6f1630ca9bf5b144e8126f /validation
parente1578773182e8f69c3a0cd8add8dfbe7561a8240 (diff)
parent2f255a14665d9b584a3de528242bb948ff63f977 (diff)
downloadsparse-dev-77b4fdcada5f3cefdad3d5b6553763a504f06283.tar.gz
Merge branch 'prev-stream' into next
* fix diagnostic source path from command line * fix diagnostic source path for invalid streams
Diffstat (limited to 'validation')
-rw-r--r--validation/preprocessor/bad-cmdline-include.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/validation/preprocessor/bad-cmdline-include.c b/validation/preprocessor/bad-cmdline-include.c
new file mode 100644
index 00000000..e4ee03f4
--- /dev/null
+++ b/validation/preprocessor/bad-cmdline-include.c
@@ -0,0 +1,11 @@
+#error some random error
+
+/*
+ * check-name: bad-cmdline-include
+ * check-command: sparse -include $file
+ *
+ * check-error-start
+command-line: note: in included file (through builtin):
+preprocessor/bad-cmdline-include.c:1:2: error: some random error
+ * check-error-end
+ */