Skip to content

Commit

Permalink
force linking, needs RUSTFLAGS as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Aug 31, 2024
1 parent e724874 commit 4610935
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/cpp/tests/symmetric_tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ impl exports::test::smoke::imports::Guest for MyExports {
pub fn main() {
thunk();
assert!(HIT.load(std::sync::atomic::Ordering::SeqCst));
{
#[link(name = "smoke")]
extern "C" {
fn thunk();
}
let _ = || {
unsafe { thunk() };
};
}
}

0 comments on commit 4610935

Please sign in to comment.