Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / clang-rename / ClassSimpleRenaming.cpp
blob086f55736cb72f622bf618f3cb76f2f1dfeeee31
1 class Foo /* Test 1 */ { // CHECK: class Bar /* Test 1 */ {
2 public:
3 void foo(int x);
4 };
6 void Foo::foo(int x) /* Test 2 */ {} // CHECK: void Bar::foo(int x) /* Test 2 */ {}
8 // Test 1.
9 // RUN: clang-rename -offset=6 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
10 // Test 2.
11 // RUN: clang-rename -offset=109 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
13 // To find offsets after modifying the file, use:
14 // grep -Ubo 'Foo.*' <file>