Fix weak linkage
This removes the last sysroot patch apart from the few patches that disable tests
This commit is contained in:
parent
02b7cdc316
commit
ca9fc101c0
4 changed files with 60 additions and 90 deletions
|
@ -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 ()>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue