| 1 | // RUN: %clang_delta --transformation=remove-unused-function --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FIRST |
| 2 | // RUN: %clang_delta --transformation=remove-unused-function --counter=2 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-SECOND |
| 3 | // RUN: %clang_delta --transformation=remove-unused-function --counter=3 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-THIRD |
| 4 | // RUN: %clang_delta --transformation=remove-unused-function --counter=4 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FOURTH |
| 5 | |
| 6 | struct S1 { |
| 7 | S1 foo() = delete; |
| 8 | }; |
| 9 | // CHECK-FIRST: struct S1 { |
| 10 | // CHECK-FIRST: {{^ *$}} |
| 11 | // CHECK-FIRST: }; |
| 12 | |
| 13 | struct S2 { |
| 14 | template <typename T> |
| 15 | S2 foo() = delete; |
| 16 | }; |
| 17 | // CHECK-SECOND: struct S2 { |
| 18 | // CHECK-SECOND: {{^ *; *$}} |
| 19 | // CHECK-SECOND: }; |
| 20 | |
| 21 | template <typename T> |
| 22 | struct S3 { |
| 23 | S3 foo() = delete; |
| 24 | }; |
| 25 | // CHECK-THIRD: struct S3 { |
| 26 | // CHECK-THIRD: {{^ *$}} |
| 27 | // CHECK-THIRD: }; |
| 28 | |
| 29 | template <typename T> |
| 30 | struct S4 { |
| 31 | S4 foo(); |
| 32 | }; |
| 33 | // CHECK-FOURTH: struct S4 { |
| 34 | // CHECK-FOURTH: {{^ *$}} |
| 35 | // CHECK-FOURTH: }; |