summaryrefslogtreecommitdiff
path: root/test/Preprocessor/missing-include-range-check.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/missing-include-range-check.h')
-rw-r--r--test/Preprocessor/missing-include-range-check.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Preprocessor/missing-include-range-check.h b/test/Preprocessor/missing-include-range-check.h
new file mode 100644
index 0000000000000..6b3f7d3561208
--- /dev/null
+++ b/test/Preprocessor/missing-include-range-check.h
@@ -0,0 +1,8 @@
+// RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -test-load-source all %s > /dev/null 2> %t.err
+// RUN: FileCheck < %t.err -check-prefix=CHECK-RANGE %s
+
+#include <foobar.h>
+#include "moozegnarf.h"
+
+// CHECK-RANGE: rewrite-includes-missing.c:4:10:{4:10-4:19}: fatal error: 'foobar.h' file not found
+// CHECK-RANGE: rewrite-includes-missing.c:5:10:{5:10-5:24}: fatal error: 'moozegnarf.h' file not found