summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-include-fixer/fixeddb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-include-fixer/fixeddb.cpp')
-rw-r--r--clang-tools-extra/test/clang-include-fixer/fixeddb.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-include-fixer/fixeddb.cpp b/clang-tools-extra/test/clang-include-fixer/fixeddb.cpp
new file mode 100644
index 00000000000..90068dbfde1
--- /dev/null
+++ b/clang-tools-extra/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;
OpenPOWER on IntegriCloud