about summary refs log tree commit diff
path: root/tests/run/mut_ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/mut_ref.rs')
-rw-r--r--tests/run/mut_ref.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run/mut_ref.rs b/tests/run/mut_ref.rs
index 5c91bc96ca0..fa50d5bc5d3 100644
--- a/tests/run/mut_ref.rs
+++ b/tests/run/mut_ref.rs
@@ -6,9 +6,10 @@
 //     6
 //     11
 
-#![feature(no_core, start)]
+#![feature(no_core)]
 #![no_std]
 #![no_core]
+#![no_main]
 
 extern crate mini_core;
 use mini_core::*;
@@ -25,8 +26,8 @@ fn update_num(num: &mut isize) {
     *num = *num + 5;
 }
 
-#[start]
-fn main(mut argc: isize, _argv: *const *const u8) -> isize {
+#[no_mangle]
+extern "C" fn main(mut argc: isize, _argv: *const *const u8) -> i32 {
     let mut test = test(argc);
     unsafe {
         libc::printf(b"%ld\n\0" as *const u8 as *const i8, test.field);