1 extern crate small_ctor;
2 
3 /// This is a small example function that is executed as ctor
4 #[small_ctor::ctor]
hello()5 unsafe fn hello() {
6     println!("life before main");
7 }
8 
main()9 fn main() {
10     println!("main");
11 }
12