blob: b307732f3f753bd7b51bdb550892b4e9573d57fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=290 -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) {
return value;
}
int main() {
foo<bool>(false);
foo<int>(0);
return 0;
}
|