Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimundi committed Oct 12, 2020
1 parent 78b36f2 commit 39fb447
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/std_tests.rs
Expand Up @@ -27,3 +27,10 @@ fn test_transparent_vtabled() {
let s = format!("{}", v_mut);
assert_eq!(s, "100");
}

#[test]
#[cfg(feature = "extern_crate_alloc")]
fn test_large_box_alloc() {
type SuperPage = [[u8; 4096]; 4096];
let _: Box<SuperPage> = try_zeroed_box().unwrap();
}

0 comments on commit 39fb447

Please sign in to comment.