blob: 9f61bf08c42c6f13932701b5daa585a0ebdff956 [file] [log] [blame]
Kirill Bobyrev5b7f0162016-07-27 13:37:22 +00001// RUN: clang-rename -offset=143 -new-name=Bar %s -- | FileCheck %s
Kirill Bobyrev713bdc02016-07-15 10:21:33 +00002
3class Foo {}; // CHECK: class Bar {};
4
Kirill Bobyrev5b7f0162016-07-27 13:37:22 +00005class Baz {
Kirill Bobyrev713bdc02016-07-15 10:21:33 +00006 operator Foo() const { // CHECK: operator Bar() const {
Kirill Bobyrev5b7f0162016-07-27 13:37:22 +00007// offset ^
Kirill Bobyrev713bdc02016-07-15 10:21:33 +00008 Foo foo; // CHECK: Bar foo;
9 return foo;
10 }
11};