Skip to content

Commit

Permalink
Run c codegen tests with autodrop-borrows enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Jan 5, 2024
1 parent 7cef2ba commit 035e5e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/c/tests/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ macro_rules! codegen_test {
},
verify,
);
test_helpers::run_world_codegen_test(
"guest-c-autodrop-borrows",
$test.as_ref(),
|resolve, world, files| {
let mut opts = wit_bindgen_c::Opts::default();
opts.autodrop_borrows = wit_bindgen_c::Enabled::Yes;
opts.build().generate(resolve, world, files).unwrap()
},
verify,
);
}
};
}
Expand Down

0 comments on commit 035e5e1

Please sign in to comment.