| 1 | // RUN: %clang_delta --transformation=rename-class --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | // RUN: %clang_delta --transformation=rename-class --counter=2 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-SECOND |
| 3 | // RUN: %clang_delta --transformation=rename-class --counter=3 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-THIRD |
| 4 | |
| 5 | namespace NS1 { |
| 6 | // CHECK: template<class T, class T2 = T> struct A; |
| 7 | template<class T, class T2 = T> struct S1; |
| 8 | // CHECK-SECOND: template<class T> struct A {}; |
| 9 | template<class T> struct S2 {}; |
| 10 | } |
| 11 | |
| 12 | namespace NS2 { |
| 13 | template<class T, class T2 = T, class T3 = void> |
| 14 | // CHECK: struct S1 : NS1::A<typename NS1::S2<T>::type, T2> {}; |
| 15 | // CHECK-SECOND: struct S1 : NS1::S1<typename NS1::A<T>::type, T2> {}; |
| 16 | // CHECK-THIRD: struct A : NS1::S1<typename NS1::S2<T>::type, T2> {}; |
| 17 | struct S1 : NS1::S1<typename NS1::S2<T>::type, T2> {}; |
| 18 | } |
| 19 | |
| 20 | namespace NS1 { |
| 21 | // CHECK: template<class T, class T2> struct A {}; |
| 22 | // CHECK-SECOND: template<class T, class T2> struct S1 {}; |
| 23 | template<class T, class T2> struct S1 {}; |
| 24 | } |