about summary refs log tree commit diff
path: root/tests/codegen-llvm/nounwind.rs
blob: c910644458aa27e8ccd4b49dd53d9e55370fbb16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ aux-build:nounwind.rs
//@ compile-flags: -C no-prepopulate-passes -C panic=abort -C metadata=a
//@ 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{{.*}} }
}