summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/VariableMacro.cpp
diff options
context:
space:
mode:
authorKirill Bobyrev <omtcyfz@gmail.com>2016-08-01 16:48:33 +0000
committerKirill Bobyrev <omtcyfz@gmail.com>2016-08-01 16:48:33 +0000
commit08c47b37d35c071890a04aae6870711a3831511d (patch)
tree44cdf53b36a21f7f9de0d4b150e0edd78c15f3f0 /clang-tools-extra/test/clang-rename/VariableMacro.cpp
parent6ac7dd19f7c3b2deb0450a349152bf75a92e987a (diff)
downloadbcm5719-llvm-08c47b37d35c071890a04aae6870711a3831511d.tar.gz
bcm5719-llvm-08c47b37d35c071890a04aae6870711a3831511d.zip
[clang-rename] revert r276836
Revert r276836, which resulted in tests passing regardless of the actual tool replacements. llvm-svn: 277354
Diffstat (limited to 'clang-tools-extra/test/clang-rename/VariableMacro.cpp')
-rw-r--r--clang-tools-extra/test/clang-rename/VariableMacro.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-rename/VariableMacro.cpp b/clang-tools-extra/test/clang-rename/VariableMacro.cpp
index 1b6c7ce099d..2a0cd870438 100644
--- a/clang-tools-extra/test/clang-rename/VariableMacro.cpp
+++ b/clang-tools-extra/test/clang-rename/VariableMacro.cpp
@@ -1,4 +1,6 @@
-// RUN: clang-rename -offset=147 -new-name=Z %s -- | FileCheck %s
+// RUN: cat %s > %t.cpp
+// RUN: clang-rename -offset=208 -new-name=Z %t.cpp -i --
+// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
#define Y X // CHECK: #define Y Z
@@ -12,5 +14,5 @@ void macro() {
foo(Y);
}
-// Use grep -FUbo 'X' <file> to get the correct offset of X when changing
+// Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing
// this file.
OpenPOWER on IntegriCloud