Merge commit '3270432f4b' into sync_cg_clif-2024-05-13
This commit is contained in:
parent
80e2a7868e
commit
ed7d97e4c8
31 changed files with 481 additions and 166 deletions
|
|
@ -4,6 +4,7 @@
|
|||
never_type,
|
||||
linkage,
|
||||
extern_types,
|
||||
naked_functions,
|
||||
thread_local,
|
||||
repr_simd,
|
||||
raw_ref_op
|
||||
|
|
@ -340,6 +341,7 @@ fn main() {
|
|||
))]
|
||||
unsafe {
|
||||
global_asm_test();
|
||||
naked_test();
|
||||
}
|
||||
|
||||
// Both statics have a reference that points to the same anonymous allocation.
|
||||
|
|
@ -395,6 +397,14 @@ global_asm! {
|
|||
"
|
||||
}
|
||||
|
||||
#[cfg(all(not(jit), not(no_unstable_features), target_arch = "x86_64"))]
|
||||
#[naked]
|
||||
extern "C" fn naked_test() {
|
||||
unsafe {
|
||||
asm!("ret", options(noreturn));
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
enum c_void {
|
||||
_1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue