| 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 | typedef struct S<int, int> new_type; |
| 7 | struct S<int, int> s; |
| 8 | |
| 9 | // CHECK-FIRST: template< typename T2> |
| 10 | // CHECK-FIRST: struct S{}; |
| 11 | // CHECK-FIRST: typedef struct S< int> new_type; |
| 12 | // CHECK-FIRST: struct S< int> s; |
| 13 | |
| 14 | // CHECK-SECOND: template<typename T1> |
| 15 | // CHECK-SECOND: struct S{}; |
| 16 | // CHECK-SECOND: typedef struct S<int> new_type; |
| 17 | // CHECK-SECOND: struct S<int> s; |