3 // Test that we can handle newtypes wrapping extern types
5 #![feature(extern_types, const_transmute)]
10 unsafe impl Sync for ExternType {}
13 pub struct Wrapper(ExternType);
15 static MAGIC_FFI_STATIC: u8 = 42;
17 pub static MAGIC_FFI_REF: &'static Wrapper = unsafe {
18 std::mem::transmute(&MAGIC_FFI_STATIC)