Skip to content

Commit dbb9091

Browse files
committed
Replace #[start] with extern fn main
1 parent ad8dd41 commit dbb9091

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test_suite/no_std/src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#![allow(internal_features)]
2-
#![feature(lang_items, start)]
2+
#![feature(lang_items)]
33
#![no_std]
4+
#![no_main]
45

5-
#[start]
6-
fn start(_argc: isize, _argv: *const *const u8) -> isize {
6+
use core::ffi::c_int;
7+
8+
#[no_mangle]
9+
extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {
710
0
811
}
912

0 commit comments

Comments
 (0)