Skip to content

Commit 8478a3b

Browse files
authored
Merge pull request #2871 from dtolnay/nostdstart
Replace #[start] with extern fn main
2 parents ad8dd41 + dbb9091 commit 8478a3b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test_suite/no_std/src/main.rs

+6-3
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)