]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/function_calls/exported_symbol_wrong_type.rs
Auto merge of #99918 - WaffleLapkin:fnFnfun, r=estebank
[rust.git] / src / tools / miri / tests / fail / function_calls / exported_symbol_wrong_type.rs
1 #[no_mangle]
2 static FOO: () = ();
3
4 fn main() {
5     extern "C" {
6         fn FOO();
7     }
8     unsafe { FOO() } //~ ERROR: attempt to call an exported symbol that is not defined as a function
9 }