diff options
Diffstat (limited to 'tests/codegen-llvm/panic-abort-windows.rs')
| -rw-r--r-- | tests/codegen-llvm/panic-abort-windows.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/codegen-llvm/panic-abort-windows.rs b/tests/codegen-llvm/panic-abort-windows.rs new file mode 100644 index 00000000000..17fdd9cc726 --- /dev/null +++ b/tests/codegen-llvm/panic-abort-windows.rs @@ -0,0 +1,16 @@ +// This test is for *-windows only. +//@ only-windows + +//@ compile-flags: -C no-prepopulate-passes -C panic=abort -Copt-level=3 + +#![crate_type = "lib"] + +// CHECK: Function Attrs: nounwind uwtable +// CHECK-NEXT: define void @normal_uwtable() +#[no_mangle] +pub fn normal_uwtable() {} + +// CHECK: Function Attrs: nounwind uwtable +// CHECK-NEXT: define void @extern_uwtable() +#[no_mangle] +pub extern "C" fn extern_uwtable() {} |
