about summary refs log tree commit diff
path: root/tests/codegen/force-no-unwind-tables.rs
blob: e823bedac0f64e3f89a25d84cc21767c4321bc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n
//@ ignore-windows

#![crate_type = "lib"]

// CHECK-LABEL: define{{.*}}void @foo
// CHECK-NOT: attributes #{{.*}} uwtable
#[no_mangle]
fn foo() {
    panic!();
}