aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/unsafe11.rs
blob: c87902fcd5f169e2d23881cd72a8030671a830dd (plain)
1
2
3
4
5
6
7
8
#[target_feature(sse)]
fn foo() {
    let a: usize = 0;
}

fn main() {
    foo() // { dg-error "requires unsafe function or block" }
}