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