Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / clang-rename / FunctionTemplate.cpp
blob51b2515b889421ffe7b25715ac42de1c2ac144e2
1 template <typename T>
2 void Foo(T t); // CHECK: void Bar(T t);
4 template <>
5 void Foo(int a); // CHECK: void Bar(int a);
7 void test() {
8 Foo<double>(1); // CHECK: Bar<double>(1);
11 // Test 1.
12 // RUN: clang-rename -offset=28 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
13 // Test 2.
14 // RUN: clang-rename -offset=81 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
15 // Test 3.
16 // RUN: clang-rename -offset=137 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
18 // To find offsets after modifying the file, use:
19 // grep -Ubo 'Foo.*' <file>