433da1fc04
They pass fine.
10 lines
171 B
Rust
10 lines
171 B
Rust
extern crate dylib;
|
|
extern crate both;
|
|
|
|
use std::mem;
|
|
|
|
fn main() {
|
|
assert_eq!(unsafe { mem::transmute::<&isize, usize>(&both::foo) },
|
|
dylib::addr());
|
|
}
|