2017-03-15 08:09:59 -07:00
|
|
|
// This test is for *-windows-msvc only.
|
|
|
|
// ignore-android
|
|
|
|
// ignore-dragonfly
|
2018-01-02 14:11:41 +01:00
|
|
|
// ignore-emscripten
|
2017-03-15 08:09:59 -07:00
|
|
|
// ignore-freebsd
|
|
|
|
// ignore-haiku
|
|
|
|
// ignore-ios
|
|
|
|
// ignore-linux
|
2018-01-02 14:11:41 +01:00
|
|
|
// ignore-macos
|
2017-03-15 08:09:59 -07:00
|
|
|
// ignore-netbsd
|
|
|
|
// ignore-openbsd
|
|
|
|
// ignore-solaris
|
2019-04-24 09:26:33 -07:00
|
|
|
// ignore-sgx
|
2017-03-15 08:09:59 -07:00
|
|
|
|
|
|
|
// compile-flags: -C no-prepopulate-passes -C panic=abort -O
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2017-10-04 14:54:28 -07:00
|
|
|
// CHECK: Function Attrs: nounwind uwtable
|
2017-03-15 08:09:59 -07:00
|
|
|
// 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() {
|
|
|
|
}
|