Mention test_main and blog_os::init in later posts

This commit is contained in:
Philipp Oppermann
2019-04-26 12:20:29 +02:00
parent 57a506e0fc
commit 0509307d8f
4 changed files with 30 additions and 18 deletions

View File

@@ -42,6 +42,10 @@ pub extern "C" fn _start() -> ! {
*(0xdeadbeef as *mut u64) = 42;
};
// as before
#[cfg(test)]
test_main();
println!("It did not crash!");
loop {}
}
@@ -171,8 +175,7 @@ pub extern "C" fn _start() -> ! {
// trigger a stack overflow
stack_overflow();
println!("It did not crash!");
loop {}
[] // test_main(), println(…), and loop {}
}
```