Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / clang-rename / FunctionOverride.cpp
blobadfeb739e66d16cbfb20a2162e92615729669bf4
1 class A { virtual void foo(); /* Test 1 */ }; // CHECK: class A { virtual void bar();
2 class B : public A { void foo(); /* Test 2 */ }; // CHECK: class B : public A { void bar();
3 class C : public B { void foo(); /* Test 3 */ }; // CHECK: class C : public B { void bar();
5 // Test 1.
6 // RUN: clang-rename -offset=23 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s
7 // Test 2.
8 // RUN: clang-rename -offset=116 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s
9 // Test 3.
10 // RUN: clang-rename -offset=209 -new-name=bar %s -- | sed 's,//.*,,' | FileCheck %s
12 // To find offsets after modifying the file, use:
13 // grep -Ubo 'foo.*' <file>