]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/panic-abort-windows.rs
Rollup merge of #59825 - jsgf:from-ref-string, r=sfackler
[rust.git] / src / test / codegen / panic-abort-windows.rs
1 // This test is for *-windows-msvc only.
2 // ignore-android
3 // ignore-cloudabi
4 // ignore-dragonfly
5 // ignore-emscripten
6 // ignore-freebsd
7 // ignore-haiku
8 // ignore-ios
9 // ignore-linux
10 // ignore-macos
11 // ignore-netbsd
12 // ignore-openbsd
13 // ignore-solaris
14
15 // compile-flags: -C no-prepopulate-passes -C panic=abort -O
16
17 #![crate_type = "lib"]
18
19 // CHECK: Function Attrs: nounwind uwtable
20 // CHECK-NEXT: define void @normal_uwtable()
21 #[no_mangle]
22 pub fn normal_uwtable() {
23 }
24
25 // CHECK: Function Attrs: nounwind uwtable
26 // CHECK-NEXT: define void @extern_uwtable()
27 #[no_mangle]
28 pub extern fn extern_uwtable() {
29 }