diff --git a/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTemplateParam.cpp b/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTemplateParam.cpp index 8fdea18babb6..3519af607694 100644 --- a/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTemplateParam.cpp +++ b/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTemplateParam.cpp @@ -1,7 +1,3 @@ -// RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=147 -new-name=U %t.cpp -i -- -// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s - template // CHECK: template class Foo { T foo(T arg, T& ref, T* ptr) { // CHECK: U foo(U arg, U& ref, U* ptr) { @@ -16,3 +12,7 @@ static void foo(T value) {} // CHECK: static void foo(U value) {} T member; // CHECK: U member; }; + +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=19 -new-name=U %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s diff --git a/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTypeInside.cpp b/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTypeInside.cpp index ddab05f654eb..28c578d484ce 100644 --- a/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTypeInside.cpp +++ b/clang-tools-extra/test/clang-rename/TemplateTypenameFindByTypeInside.cpp @@ -1,7 +1,3 @@ -// RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=227 -new-name=U %t.cpp -i -- -// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s - template // CHECK: template class Foo { T foo(T arg, T& ref, T* ptr) { // CHECK: U foo(U arg, U& ref, U* ptr) { @@ -16,3 +12,7 @@ static void foo(T value) {} // CHECK: static void foo(U value) {} T member; // CHECK: U member; }; + +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=99 -new-name=U %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s