diff options
Diffstat (limited to 'tests/codegen/mainsubprogramstart.rs')
-rw-r--r-- | tests/codegen/mainsubprogramstart.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/codegen/mainsubprogramstart.rs b/tests/codegen/mainsubprogramstart.rs new file mode 100644 index 000000000..d4de9f59a --- /dev/null +++ b/tests/codegen/mainsubprogramstart.rs @@ -0,0 +1,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; +} |