Debian Codegraph @

gcc/testsuite/rust/compile/abi-options1.rs

raw
1 extern "foobar" {
2 // { dg-error "invalid ABI: found .foobar." "" { target *-*-* } .-1 }
3 fn printf(s: *const i8, ...);
4 }
5
6 pub extern "baz" fn test() {}
7 // { dg-error "invalid ABI: found .baz." "" { target *-*-* } .-1 }
8
9 // extern "Rust" fn foo() {} // OK!