2017-10-04 16:54:28 -05:00
|
|
|
// aux-build:nounwind.rs
|
|
|
|
// compile-flags: -C no-prepopulate-passes -C panic=abort -C metadata=a
|
|
|
|
// ignore-windows
|
2018-04-19 17:17:34 -05:00
|
|
|
// ignore-android
|
2017-10-04 16:54:28 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
extern crate nounwind;
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn foo() {
|
|
|
|
nounwind::bar();
|
|
|
|
// CHECK: @foo() unnamed_addr #0
|
|
|
|
// CHECK: @bar() unnamed_addr #0
|
|
|
|
// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
|
|
|
|
}
|