Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Nov 28, 2022
1 parent fb5c79e commit 6e76d3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/all/boxed.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![cfg(feature = "boxed")]

use bumpalo::Bump;
use bumpalo::boxed::Box;

#[test]
fn into_raw_aliasing() {
let bump = Bump::new();
let boxed = Box::new_in(1, &bump);
let raw = Box::into_raw(boxed);

let mut_ref = unsafe { &mut *raw };
dbg!(mut_ref);
}
1 change: 1 addition & 0 deletions tests/all/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ mod tests;
mod try_alloc_try_with;
mod try_alloc_with;
mod vec;
mod boxed;

fn main() {}

0 comments on commit 6e76d3c

Please sign in to comment.