diff options
Diffstat (limited to 'tests/ui/issues/issue-25185.rs')
-rw-r--r-- | tests/ui/issues/issue-25185.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-25185.rs b/tests/ui/issues/issue-25185.rs new file mode 100644 index 000000000..383c9a1e9 --- /dev/null +++ b/tests/ui/issues/issue-25185.rs @@ -0,0 +1,13 @@ +// run-pass +// aux-build:issue-25185-1.rs +// aux-build:issue-25185-2.rs +// ignore-wasm32-bare no libc for ffi testing + +extern crate issue_25185_2; + +fn main() { + let x = unsafe { + issue_25185_2::rust_dbg_extern_identity_u32(1) + }; + assert_eq!(x, 1); +} |