summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/TemplateFunctionFindByUse.cpp
blob: 7c57062d25888d25a6e801f984b0d3ce2af80592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-rename -offset=172 -new-name=bar %s -- | FileCheck %s

template <typename T>
T foo(T value) {    // CHECK: T bar(T value) {
  return value;
}

int main() {
  foo<bool>(false); // CHECK: bar<bool>(false);
  foo<int>(0);      // CHECK: bar<int>(0);
  return 0;
}
OpenPOWER on IntegriCloud