diff options
Diffstat (limited to 'clang-tools-extra/test/clang-rename/ConstructExpr.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/ConstructExpr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-rename/ConstructExpr.cpp b/clang-tools-extra/test/clang-rename/ConstructExpr.cpp index 4c795e2f61d..d7f104c03d8 100644 --- a/clang-tools-extra/test/clang-rename/ConstructExpr.cpp +++ b/clang-tools-extra/test/clang-rename/ConstructExpr.cpp @@ -1,4 +1,6 @@ -// RUN: clang-rename -offset=74 -new-name=Boo %s -- | FileCheck %s +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=136 -new-name=Boo %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s class Foo {}; // CHECK: class Boo {}; @@ -6,5 +8,5 @@ int main() { Foo *C = new Foo(); // CHECK: Boo *C = new Boo(); } -// Use grep -FUbo 'Foo' <file> to get the correct offset of Foo when changing +// Use grep -FUbo 'Boo' <file> to get the correct offset of foo when changing // this file. |