about summary refs log tree commit diff
path: root/tests/codegen/mainsubprogramstart.rs
blob: 0bcb311644d071c96fe5ef668530f41353e90bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ ignore-apple
//@ ignore-wasi wasi codegens the main symbol differently

//@ 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;
}