summaryrefslogtreecommitdiff
path: root/test/Frontend/rewrite-includes-filenotfound.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/rewrite-includes-filenotfound.c')
-rw-r--r--test/Frontend/rewrite-includes-filenotfound.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/rewrite-includes-filenotfound.c b/test/Frontend/rewrite-includes-filenotfound.c
new file mode 100644
index 000000000000..203dbde54516
--- /dev/null
+++ b/test/Frontend/rewrite-includes-filenotfound.c
@@ -0,0 +1,6 @@
+// RUN: not %clang_cc1 -E -frewrite-includes %s -o - 2>&1 | FileCheck %s
+
+#include "this file does not exist.foo"
+#include "this file also does not exist.foo"
+
+CHECK: fatal error: {{.*}} file not found