]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/unsupported_foreign_function.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / tools / miri / tests / fail / unsupported_foreign_function.rs
1 fn main() {
2     extern "Rust" {
3         fn foo();
4     }
5
6     unsafe {
7         foo(); //~ ERROR: unsupported operation: can't call foreign function: foo
8     }
9 }