diff options
Diffstat (limited to 'test/Refactor/LocalRename/Field.cpp')
| -rw-r--r-- | test/Refactor/LocalRename/Field.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Refactor/LocalRename/Field.cpp b/test/Refactor/LocalRename/Field.cpp new file mode 100644 index 000000000000..e674401b9653 --- /dev/null +++ b/test/Refactor/LocalRename/Field.cpp @@ -0,0 +1,11 @@ +// RUN: clang-refactor local-rename -selection=test:%s -new-name=Bar %s -- | grep -v CHECK | FileCheck %s + +class Baz { + int /*range=*/Foo; + // CHECK: int /*range=*/Bar; +public: + Baz(); +}; + +Baz::Baz() : /*range=*/Foo(0) {} +// CHECK: Baz::Baz() : /*range=*/Bar(0) {} |
