summaryrefslogtreecommitdiffstats
path: root/tests/codegen/mainsubprogramstart.rs
blob: d4de9f59ac27aad2cb848b68e559f65da4833c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;
}