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