| 86 | } |
| 87 | |
| 88 | std::vector<array> outer_fun(const std::vector<array>& inputs) { |
| 89 | auto x = inputs[0] + inputs[1]; |
| 90 | auto y = compile(inner_fun)({x})[0]; |
| 91 | return {x + y}; |
| 92 | } |
| 93 | |
| 94 | TEST_CASE("test nested compile") { |
| 95 | auto cfun = compile(outer_fun); |