summaryrefslogtreecommitdiffstats
path: root/tests/codegen/nounwind.rs
blob: f639c60b8935820004ba1332a88312a96bbb2329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// aux-build:nounwind.rs
// compile-flags: -C no-prepopulate-passes -C panic=abort -C metadata=a
// ignore-windows
// ignore-android

#![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{{.*}} }
}