aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/abi-options1.rs
blob: 797dff098234922668e62affd5ec54c3f9991b97 (plain)
1
2
3
4
5
6
7
8
9
extern "foobar" {
    // { dg-error "invalid ABI: found .foobar." "" { target *-*-* } .-1 }
    fn printf(s: *const i8, ...);
}

pub extern "baz" fn test() {}
// { dg-error "invalid ABI: found .baz." "" { target *-*-* } .-1 }

// extern "Rust" fn foo() {} // OK!