Skip to content

Commit

Permalink
Merge pull request #2871 from dtolnay/nostdstart
Browse files Browse the repository at this point in the history
Replace #[start] with extern fn main
  • Loading branch information
dtolnay authored Dec 20, 2024
2 parents ad8dd41 + dbb9091 commit 8478a3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test_suite/no_std/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#![allow(internal_features)]
#![feature(lang_items, start)]
#![feature(lang_items)]
#![no_std]
#![no_main]

#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
use core::ffi::c_int;

#[no_mangle]
extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {
0
}

Expand Down

0 comments on commit 8478a3b

Please sign in to comment.