| 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 | // RUN: %clang_delta --transformation=reduce-class-template-param --counter=3 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-THIRD |
| 4 | // RUN: %clang_delta --transformation=reduce-class-template-param --counter=4 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FOURTH |
| 5 | |
| 6 | template <typename T1, typename T2, typename T3, typename T4> |
| 7 | struct S {}; |
| 8 | struct S1 {}; |
| 9 | struct S<long long, struct S1 *, unsigned int, unsigned short> s; |
| 10 | |
| 11 | // CHECK-FIRST: template < typename T2, typename T3, typename T4> |
| 12 | // CHECK-FIRST: struct S {}; |
| 13 | // CHECK-FIRST: struct S1 {}; |
| 14 | // CHECK-FIRST: struct S< struct S1 *, unsigned int, unsigned short> s; |
| 15 | |
| 16 | // CHECK-SECOND: template <typename T1, typename T3, typename T4> |
| 17 | // CHECK-SECOND: struct S {}; |
| 18 | // CHECK-SECOND: struct S1 {}; |
| 19 | // CHECK-SECOND: struct S<long long, unsigned int, unsigned short> s; |
| 20 | |
| 21 | // CHECK-THIRD: template <typename T1, typename T2, typename T4> |
| 22 | // CHECK-THIRD: struct S {}; |
| 23 | // CHECK-THIRD: struct S1 {}; |
| 24 | // CHECK-THIRD: struct S<long long, struct S1 *, unsigned short> s; |
| 25 | |
| 26 | // CHECK-FOURTH: template <typename T1, typename T2, typename T3> |
| 27 | // CHECK-FOURTH: struct S {}; |
| 28 | // CHECK-FOURTH: struct S1 {}; |
| 29 | // CHECK-FOURTH: struct S<long long, struct S1 *, unsigned int> s; |
| 30 |