[clang-rename] fix typos in tests

TemplateFunctionFindBy{Declaration|Use}.cpp contained typos and therefore were
failing. clang-rename passes these tests after typos are fixed.

llvm-svn: 276620
This commit is contained in:
Kirill Bobyrev 2016-07-25 08:56:11 +00:00
parent 58e5c4dcfe
commit c20d47751d
2 changed files with 6 additions and 12 deletions

View File

@ -1,12 +1,9 @@
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=241 -new-name=bar %t.cpp -i --
// RUN: clang-rename -offset=154 -new-name=bar %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
// FIXME: clang-rename should be able to rename functions with templates.
// XFAIL: *
template <typename T>
T foo(T value) { // CHECK: T boo(T value) {
T foo(T value) { // CHECK: T bar(T value) {
return value;
}

View File

@ -1,17 +1,14 @@
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=290 -new-name=Bar %t.cpp -i --
// RUN: clang-rename -offset=233 -new-name=bar %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
// FIXME: clang-rename should be able to rename functions with templates.
// XFAIL: *
template <typename T>
T foo(T value) {
T foo(T value) { // CHECK: T bar(T value) {
return value;
}
int main() {
foo<bool>(false);
foo<int>(0);
foo<bool>(false); // CHECK: bar<bool>(false);
foo<int>(0); // CHECK: bar<int>(0);
return 0;
}