summaryrefslogtreecommitdiffstats
path: root/test/clang-include-fixer/exit_on_fatal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/clang-include-fixer/exit_on_fatal.cpp')
-rw-r--r--test/clang-include-fixer/exit_on_fatal.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/clang-include-fixer/exit_on_fatal.cpp b/test/clang-include-fixer/exit_on_fatal.cpp
new file mode 100644
index 00000000..fc8c95a0
--- /dev/null
+++ b/test/clang-include-fixer/exit_on_fatal.cpp
@@ -0,0 +1,10 @@
+// RUN: sed -e 's#//.*$##' %s > %t.cpp
+// RUN: not clang-include-fixer -db=fixed -input='foo= "foo.h"' %t.cpp --
+// RUN: FileCheck %s -input-file=%t.cpp
+
+// CHECK-NOT: #include
+// CHECK: #include "doesnotexist.h"
+// CHECK-NEXT: foo f;
+
+#include "doesnotexist.h"
+foo f;