summary refs log tree commit diff
path: root/tests/codegen/nounwind.rs
blob: 464bc2535c2bf9bea799a414f174b27458a5022d (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{{.*}} }
}