| 1 | // RUN: %check_clang_tidy -std=c++98 %s modernize-use-equals-default %t |
|---|---|
| 2 | |
| 3 | struct S { |
| 4 | S() {} |
| 5 | // CHECK-FIXES: S() {} |
| 6 | ~S() {} |
| 7 | // CHECK-FIXES: ~S() {} |
| 8 | }; |
| 9 |
| 1 | // RUN: %check_clang_tidy -std=c++98 %s modernize-use-equals-default %t |
|---|---|
| 2 | |
| 3 | struct S { |
| 4 | S() {} |
| 5 | // CHECK-FIXES: S() {} |
| 6 | ~S() {} |
| 7 | // CHECK-FIXES: ~S() {} |
| 8 | }; |
| 9 |