From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/codegen/panic-abort-windows.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/codegen/panic-abort-windows.rs (limited to 'tests/codegen/panic-abort-windows.rs') diff --git a/tests/codegen/panic-abort-windows.rs b/tests/codegen/panic-abort-windows.rs new file mode 100644 index 000000000..2ee29762d --- /dev/null +++ b/tests/codegen/panic-abort-windows.rs @@ -0,0 +1,18 @@ +// This test is for *-windows only. +// only-windows + +// compile-flags: -C no-prepopulate-passes -C panic=abort -O + +#![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 fn extern_uwtable() { +} -- cgit v1.2.3