diff --git a/sample/src/lib.rs b/sample/src/lib.rs index b27c062..17f79c5 100644 --- a/sample/src/lib.rs +++ b/sample/src/lib.rs @@ -25,6 +25,7 @@ impl SeedableRng for MyRngCore { } #[cfg(not(feature = "superbanana"))] +#[inline(never)] pub fn main() -> u32 { 1 + 1 } @@ -38,6 +39,7 @@ impl Bar { } #[cfg(feature = "superbanana")] +#[inline(never)] pub fn main() { let mut rng = BlockRng::::seed_from_u64(0); for ix in 0..10 { diff --git a/sample_rlib/lib.rs b/sample_rlib/lib.rs index f577d47..d9364a6 100644 --- a/sample_rlib/lib.rs +++ b/sample_rlib/lib.rs @@ -1,4 +1,4 @@ +#[inline(never)] pub fn add(a: usize, b: usize) -> usize { a + b } -