blob: 11a043156c07deadf5dc253940b5e79431cfc7c5 [file]
// Only works on Unix targets
//@ignore-target: windows wasm
//@normalize-stderr-test: "OS `.*`" -> "$$OS"
extern "C" {
fn foo();
}
fn main() {
unsafe {
foo(); //~ ERROR: unsupported operation: can't call foreign function `foo`
}
}