summaryrefslogtreecommitdiffstats
path: root/tests/codegen/force-no-unwind-tables.rs
blob: 3ee23f05eb2b1d11a968091803b23e36a6351792 (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!();
}