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