about summary refs log tree commit diff
path: root/tests/run/return-tuple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/return-tuple.rs')
-rw-r--r--tests/run/return-tuple.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run/return-tuple.rs b/tests/run/return-tuple.rs
index c3069933e08..c1254c51ce9 100644
--- a/tests/run/return-tuple.rs
+++ b/tests/run/return-tuple.rs
@@ -6,9 +6,10 @@
 //     10
 //     42
 
-#![feature(no_core, start)]
+#![feature(no_core)]
 #![no_std]
 #![no_core]
+#![no_main]
 
 extern crate mini_core;
 use mini_core::*;
@@ -20,8 +21,8 @@ fn int_cast(a: u16, b: i16) -> (u8, u16, u32, usize, i8, i16, i32, isize, u8, u3
     )
 }
 
-#[start]
-fn main(argc: isize, _argv: *const *const u8) -> isize {
+#[no_mangle]
+extern "C" fn main(argc: i32, _argv: *const *const u8) -> i32 {
     let (a, b, c, d, e, f, g, h, i, j) = int_cast(10, 42);
     unsafe {
         libc::printf(b"%d\n\0" as *const u8 as *const i8, c);