@@ -28,20 +28,21 @@ extern {
28
28
29
29
fn main ( ) {
30
30
let value : u32 = 41 ;
31
-
31
+ let question = "Answer to the Ultimate Question of Life, the Universe, and Everything:" ;
32
+
32
33
unsafe {
33
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , rust_plus_one_global_asm( & value) ) ;
34
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cc_plus_one_c( & value) ) ;
35
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cc_plus_one_c_asm( & value) ) ;
36
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cc_plus_one_cxx( & value) ) ;
37
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cc_plus_one_cxx_asm( & value) ) ;
38
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cc_plus_one_asm( & value) ) ;
39
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_c( & value) ) ;
40
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_c_asm( & value) ) ;
41
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_cxx( & value) ) ;
42
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_cxx_asm( & value) ) ;
43
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_c_global_asm( & value) ) ;
44
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_cxx_global_asm( & value) ) ;
45
- println ! ( "Answer to the Ultimate Question of Life, the Universe, and Everything : {}!" , cmake_plus_one_asm( & value) ) ;
34
+ println ! ( "{} : {}!" , question , rust_plus_one_global_asm( & value) ) ;
35
+ println ! ( "{} : {}!" , question , cc_plus_one_c( & value) ) ;
36
+ println ! ( "{} : {}!" , question , cc_plus_one_c_asm( & value) ) ;
37
+ println ! ( "{} : {}!" , question , cc_plus_one_cxx( & value) ) ;
38
+ println ! ( "{} : {}!" , question , cc_plus_one_cxx_asm( & value) ) ;
39
+ println ! ( "{} : {}!" , question , cc_plus_one_asm( & value) ) ;
40
+ println ! ( "{} : {}!" , question , cmake_plus_one_c( & value) ) ;
41
+ println ! ( "{} : {}!" , question , cmake_plus_one_c_asm( & value) ) ;
42
+ println ! ( "{} : {}!" , question , cmake_plus_one_cxx( & value) ) ;
43
+ println ! ( "{} : {}!" , question , cmake_plus_one_cxx_asm( & value) ) ;
44
+ println ! ( "{} : {}!" , question , cmake_plus_one_c_global_asm( & value) ) ;
45
+ println ! ( "{} : {}!" , question , cmake_plus_one_cxx_global_asm( & value) ) ;
46
+ println ! ( "{} : {}!" , question , cmake_plus_one_asm( & value) ) ;
46
47
}
47
48
}
0 commit comments