Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
src
/
tools
/
miri
/
tests
/
native-lib
/
fail
/
function_not_in_so.rs
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`
}
}