diff options
author | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-07-15 12:22:38 +0000 |
---|---|---|
committer | Kirill Bobyrev <omtcyfz@gmail.com> | 2016-07-15 12:22:38 +0000 |
commit | ee99fd13ae7db929b9ba3d4510f939d51af50e62 (patch) | |
tree | 5ac2a4a98d8e8a3d92fa48190259b790c45f239b /clang-tools-extra/test/clang-rename/DeclRefExpr.cpp | |
parent | 9377a7b6a811cd0d55c100cc693ea6f46ceeac75 (diff) | |
download | bcm5719-llvm-ee99fd13ae7db929b9ba3d4510f939d51af50e62.tar.gz bcm5719-llvm-ee99fd13ae7db929b9ba3d4510f939d51af50e62.zip |
[clang-rename] fix testset
Make yet unsupported tests marked with FIXME pass so that buildbot doesn't fail.
llvm-svn: 275556
Diffstat (limited to 'clang-tools-extra/test/clang-rename/DeclRefExpr.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/DeclRefExpr.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/clang-tools-extra/test/clang-rename/DeclRefExpr.cpp b/clang-tools-extra/test/clang-rename/DeclRefExpr.cpp index 712173bcf93..2059ff0b398 100644 --- a/clang-tools-extra/test/clang-rename/DeclRefExpr.cpp +++ b/clang-tools-extra/test/clang-rename/DeclRefExpr.cpp @@ -1,23 +1,19 @@ // RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=158 -new-name=Y %t.cpp -i -- +// RUN: clang-rename -offset=161 -new-name=Bar %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s -class C -{ + +class C { public: - static int X; + static int Foo; // CHECK: static int Bar; }; -int foo(int x) -{ - return 0; -} -#define FOO(a) foo(a) +int foo(int x) { return 0; } +#define MACRO(a) foo(a) -int main() -{ - C::X = 1; // CHECK: C::Y - FOO(C::X); // CHECK: C::Y - int y = C::X; // CHECK: C::Y +int main() { + C::Foo = 1; // CHECK: C::Bar + MACRO(C::Foo); // CHECK: C::Bar + int y = C::Foo; // CHECK: C::Bar } // Use grep -FUbo 'X' <file> to get the correct offset of foo when changing |