diff options
Diffstat (limited to 'clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp b/clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp index 277e465a97e..2d5ecd2a014 100644 --- a/clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp +++ b/clang-tools-extra/test/clang-rename/ReinterpretCastExpr.cpp @@ -1,5 +1,6 @@ -// RUN: clang-rename -offset=73 -new-name=X %s -- | FileCheck %s - +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=133 -new-name=X %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s class Cla { public: int getValue() const { @@ -12,5 +13,5 @@ int main() { reinterpret_cast<const Cla *>(C)->getValue(); // CHECK: reinterpret_cast<const X *> } -// Use grep -FUbo 'Cla' <file> to get the correct offset of Cla when changing +// Use grep -FUbo 'Cla' <file> to get the correct offset of foo when changing // this file. |