1
Fork 0

Fix weak linkage

This removes the last sysroot patch apart from the few patches that disable tests
This commit is contained in:
bjorn3 2020-08-16 21:20:12 +02:00
parent 02b7cdc316
commit ca9fc101c0
4 changed files with 60 additions and 90 deletions

View file

@ -241,19 +241,22 @@ fn main() {
assert_eq!(((|()| 42u8) as fn(()) -> u8)(()), 42);
extern {
#[linkage = "extern_weak"]
static ABC: *const u8;
}
#[cfg(not(jit))]
{
extern {
#[linkage = "extern_weak"]
static ABC: *const u8;
}
}
unsafe { assert_eq!(ABC as usize, 0); }
{
extern {
#[linkage = "extern_weak"]
static ABC: *const u8;
}
}
unsafe { assert_eq!(ABC as usize, 0); }
}
&mut (|| Some(0 as *const ())) as &mut dyn FnMut() -> Option<*const ()>;