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