diff options
Diffstat (limited to 'test/clang-rename/FunctionWithClassFindByName.cpp')
-rw-r--r-- | test/clang-rename/FunctionWithClassFindByName.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/clang-rename/FunctionWithClassFindByName.cpp b/test/clang-rename/FunctionWithClassFindByName.cpp new file mode 100644 index 0000000000000..2cae09a1c2448 --- /dev/null +++ b/test/clang-rename/FunctionWithClassFindByName.cpp @@ -0,0 +1,12 @@ +void foo() { +} + +class Foo { // CHECK: class Bar +}; + +int main() { + Foo *Pointer = 0; // CHECK: Bar *Pointer = 0; + return 0; +} + +// RUN: clang-rename -qualified-name=Foo -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s |