]> git.proxmox.com Git - rustc.git/blobdiff - src/test/codegen/unwind-abis/stdcall-unwind-abi.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / codegen / unwind-abis / stdcall-unwind-abi.rs
index ed804ca278d2de5e4120eae497a325668919d105..f1dff27ad67b25d1413423e67dd4b11d7c7710cd 100644 (file)
@@ -1,15 +1,14 @@
-// compile-flags: -C opt-level=0
-// ignore-arm stdcall isn't supported
-// ignore-aarch64 stdcall isn't supported
-// ignore-riscv64 stdcall isn't supported
+// needs-llvm-components: x86
+// compile-flags: --target=i686-pc-windows-msvc --crate-type=rlib -Cno-prepopulate-passes
+#![no_core]
+#![feature(no_core, lang_items, c_unwind)]
+#[lang="sized"]
+trait Sized { }
 
 // Test that `nounwind` atributes are correctly applied to exported `stdcall` and `stdcall-unwind`
 // extern functions. `stdcall-unwind` functions MUST NOT have this attribute. We disable
 // optimizations above to prevent LLVM from inferring the attribute.
 
-#![crate_type = "lib"]
-#![feature(c_unwind)]
-
 // CHECK: @rust_item_that_cannot_unwind() unnamed_addr #0 {
 #[no_mangle]
 pub extern "stdcall" fn rust_item_that_cannot_unwind() {