11 lines · cpp
1struct Foo {2 // Triggers that we emit an artificial constructor for Foo.3 virtual ~Foo() = default;4};5 6int main() {7 Foo f;8 // Try to construct foo in our expression.9 return 0; //%self.expect_expr("Foo()", result_type="Foo", result_children=[])10}11