mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 00:23:43 +00:00
[clang-rename] Fix the failure rename test.
We cannot run two different tests in a single lit test, split into two.
This commit is contained in:
parent
a7fd548a4f
commit
2733ad2c24
@ -5,23 +5,10 @@ public:
|
||||
|
||||
Foo::Foo() /* Test 2 */ {} // CHECK: Bar::Bar() /* Test 2 */ {}
|
||||
|
||||
|
||||
class Foo2 { /* Test 3 */ // CHECK: class Bar2 {
|
||||
public:
|
||||
template <typename T>
|
||||
Foo2(); // CHECK: Bar2();
|
||||
|
||||
template <typename T>
|
||||
Foo2(Foo2 &); // CHECK: Bar2(Bar2 &);
|
||||
};
|
||||
|
||||
|
||||
// Test 1.
|
||||
// RUN: clang-rename -offset=62 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
|
||||
// Test 2.
|
||||
// RUN: clang-rename -offset=116 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
|
||||
// Test 3.
|
||||
// RUN: clang-rename -offset=187 -new-name=Bar2 %s -- | sed 's,//.*,,' | FileCheck %s
|
||||
|
||||
// To find offsets after modifying the file, use:
|
||||
// grep -Ubo 'Foo.*' <file>
|
||||
|
10
clang/test/clang-rename/TemplateCtor.cpp
Normal file
10
clang/test/clang-rename/TemplateCtor.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
class Foo { // CHECK: class Bar {
|
||||
public:
|
||||
template <typename T>
|
||||
Foo(); // CHECK: Bar();
|
||||
|
||||
template <typename T>
|
||||
Foo(Foo &); // CHECK: Bar(Bar &);
|
||||
};
|
||||
|
||||
// RUN: clang-rename -offset=6 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
|
Loading…
Reference in New Issue
Block a user