blob: 72710d05de4cb9d5b4ea3deffa1db137c3969531 [file] [log] [blame]
Kirill Bobyrevee99fd12016-07-15 12:22:38 +00001// RUN: cat %s > %t.cpp
2// RUN: clang-rename -offset=136 -new-name=Bar %t.cpp -i --
3// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
4
5class Foo {}; // CHECK: class Bar
6
7int main() {
8 Foo *Pointer = 0; // CHECK: Bar *Pointer = 0;
9 return 0;
10}
11
12// Use grep -FUbo 'Foo' <file> to get the correct offset of Cla when changing
13// this file.