[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / clang-rename / Ctor.cpp
blob9908a4123ddfc05ae8a91d76bdd15345830e59b2
1 class Foo { // CHECK: class Bar {
2 public:
3 Foo(); /* Test 1 */ // CHECK: Bar();
4 };
6 Foo::Foo() /* Test 2 */ {} // CHECK: Bar::Bar() /* Test 2 */ {}
8 // Test 1.
9 // RUN: clang-rename -offset=62 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
10 // Test 2.
11 // RUN: clang-rename -offset=116 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
13 // To find offsets after modifying the file, use:
14 // grep -Ubo 'Foo.*' <file>