Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / clang-rename / ClassAsTemplateArgument.cpp
blob2e09a5b529e753046f47a806de317e9c41a58909
1 class Foo /* Test 1 */ {}; // CHECK: class Bar /* Test 1 */ {};
3 template <typename T>
4 void func() {}
6 template <typename T>
7 class Baz {};
9 int main() {
10 func<Foo>(); // CHECK: func<Bar>();
11 Baz<Foo> /* Test 2 */ obj; // CHECK: Baz<Bar> /* Test 2 */ obj;
12 return 0;
15 // Test 1.
16 // RUN: clang-rename -offset=7 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
17 // Test 2.
18 // RUN: clang-rename -offset=215 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
20 // To find offsets after modifying the file, use:
21 // grep -Ubo 'Foo.*' <file>