Merge branch 'post-11' into post-12

This commit is contained in:
Philipp Oppermann
2020-05-22 10:54:54 +02:00

View File

@@ -31,8 +31,10 @@ fn main(boot_info: &'static BootInfo) -> ! {
#[test_case]
fn simple_allocation() {
serial_print!("simple_allocation... ");
let heap_value = Box::new(41);
assert_eq!(*heap_value, 41);
let heap_value_1 = Box::new(41);
let heap_value_2 = Box::new(13);
assert_eq!(*heap_value_1, 41);
assert_eq!(*heap_value_2, 13);
serial_println!("[ok]");
}