rust/tests/codegen/mainsubprogramstart.rs
2023-01-11 09:32:08 +00:00

15 lines
291 B
Rust

// ignore-windows
// ignore-macos
// compile-flags: -g -C no-prepopulate-passes
#![feature(start)]
// CHECK-LABEL: @main
// CHECK: {{.*}}DISubprogram{{.*}}name: "start",{{.*}}DI{{(SP)?}}FlagMainSubprogram{{.*}}
#[start]
fn start(_: isize, _: *const *const u8) -> isize {
return 0;
}