]> git.lizzy.rs Git - rust.git/blob - tests/codegen/nounwind.rs
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / codegen / nounwind.rs
1 // aux-build:nounwind.rs
2 // compile-flags: -C no-prepopulate-passes -C panic=abort -C metadata=a
3 // ignore-windows
4 // ignore-android
5
6 #![crate_type = "lib"]
7
8 extern crate nounwind;
9
10 #[no_mangle]
11 pub fn foo() {
12     nounwind::bar();
13 // CHECK: @foo() unnamed_addr #0
14 // CHECK: @bar() unnamed_addr #0
15 // CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
16 }