blob: e54880e97dabc56678e4bd98013334cfc52e0a8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Only works on Unix targets
//@ignore-target: windows wasm
//@only-on-host
//@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`
}
}
|