| 1 | // RUN: %clang_delta --transformation=reduce-class-template-param --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FIRST |
| 2 | // RUN: %clang_delta --transformation=reduce-class-template-param --counter=2 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-SECOND |
| 3 | |
| 4 | template <typename T1, typename T2> |
| 5 | struct S {}; |
| 6 | template <> |
| 7 | struct S<int, bool> {}; |
| 8 | template<typename T1> |
| 9 | struct S2 : S<T1, bool> {}; |
| 10 | |
| 11 | // CHECK-FIRST: template < typename T2> |
| 12 | // CHECK-FIRST: struct S {}; |
| 13 | // CHECK-FIRST: template <> |
| 14 | // CHECK-FIRST: struct S< bool> {}; |
| 15 | // CHECK-FIRST: template<typename T1> |
| 16 | // CHECK-FIRST: struct S2 : S< bool> {}; |
| 17 | |
| 18 | // CHECK-SECOND: template <typename T1> |
| 19 | // CHECK-SECOND: struct S {}; |
| 20 | // CHECK-SECOND: template <> |
| 21 | // CHECK-SECOND: struct S<int> {}; |
| 22 | // CHECK-SECOND: template<typename T1> |
| 23 | // CHECK-SECOND: struct S2 : S<T1> {}; |
| 24 |