summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/YAMLInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-rename/YAMLInput.cpp')
-rw-r--r--clang-tools-extra/test/clang-rename/YAMLInput.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-rename/YAMLInput.cpp b/clang-tools-extra/test/clang-rename/YAMLInput.cpp
new file mode 100644
index 00000000000..55dbc6d66a5
--- /dev/null
+++ b/clang-tools-extra/test/clang-rename/YAMLInput.cpp
@@ -0,0 +1,10 @@
+class Foo1 { // CHECK: class Bar1
+};
+
+class Foo2 { // CHECK: class Bar2
+};
+
+// Test 1.
+// RUN: clang-rename -input %S/Inputs/OffsetToNewName.yaml %s -- | sed 's,//.*,,' | FileCheck %s
+// Test 2.
+// RUN: clang-rename -input %S/Inputs/QualifiedNameToNewName.yaml %s -- | sed 's,//.*,,' | FileCheck %s
OpenPOWER on IntegriCloud