diff options
Diffstat (limited to 'clang-tools-extra/test/clang-rename/VarTest.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-rename/VarTest.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/clang-tools-extra/test/clang-rename/VarTest.cpp b/clang-tools-extra/test/clang-rename/VarTest.cpp deleted file mode 100644 index ecf2df4b023..00000000000 --- a/clang-tools-extra/test/clang-rename/VarTest.cpp +++ /dev/null @@ -1,24 +0,0 @@ -namespace A { -int foo; // CHECK: int hector; -} -int foo; // CHECK: int foo; -int bar = foo; // CHECK: bar = foo; -int baz = A::foo; // CHECK: baz = A::hector; -void fun1() { - struct { - int foo; // CHECK: int foo; - } b = { 100 }; - int foo = 100; // CHECK: int foo - baz = foo; // CHECK: baz = foo; - { - extern int foo; // CHECK: int foo; - baz = foo; // CHECK: baz = foo; - foo = A::foo + baz; // CHECK: foo = A::hector + baz; - A::foo = b.foo; // CHECK: A::hector = b.foo; - } - foo = b.foo; // CHECK: foo = b.foo; -} -// REQUIRES: shell -// RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=$(grep -FUbo 'foo;' %t.cpp | head -1 | cut -d: -f1) -new-name=hector %t.cpp -i -- -// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s |