diff options
Diffstat (limited to 'tests/codegen-llvm/mainsubprogram.rs')
| -rw-r--r-- | tests/codegen-llvm/mainsubprogram.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/codegen-llvm/mainsubprogram.rs b/tests/codegen-llvm/mainsubprogram.rs new file mode 100644 index 00000000000..ce3fe3c8608 --- /dev/null +++ b/tests/codegen-llvm/mainsubprogram.rs @@ -0,0 +1,12 @@ +// This test depends on a patch that was committed to upstream LLVM +// before 4.0, formerly backported to the Rust LLVM fork. + +//@ ignore-apple +//@ ignore-wasi + +//@ compile-flags: -g -C no-prepopulate-passes + +// CHECK-LABEL: @main +// CHECK: {{.*}}DISubprogram{{.*}}name: "main",{{.*}}DI{{(SP)?}}FlagMainSubprogram{{.*}} + +pub fn main() {} |
