clang_delta/tests/remove-nested-function/remove_nested_func1.cc
raw| 1 | // RUN: %clang_delta --transformation=remove-nested-function --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | |
| 3 | struct S1 { |
| 4 | S1(int); |
| 5 | }; |
| 6 | int foo(); |
| 7 | int bar(int); |
| 8 | struct f : S1 { |
| 9 | // CHECK: S1(bar(foo())) |
| 10 | f() : S1(bar(foo())) { |
| 11 | // CHECK-NEXT: int __trans_tmp_1 = foo(); |
| 12 | // CHECK-NEXT: bar(__trans_tmp_1); |
| 13 | bar(foo()); |
| 14 | } |
| 15 | }; |