parent
1987a3b6c0
commit
037d411bf4
5 changed files with 121 additions and 18 deletions
|
@ -284,6 +284,26 @@ fn main() {
|
|||
|
||||
#[cfg(not(jit))]
|
||||
test_tls();
|
||||
|
||||
#[cfg(not(jit))]
|
||||
unsafe {
|
||||
global_asm_test();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(jit))]
|
||||
extern "C" {
|
||||
fn global_asm_test();
|
||||
}
|
||||
|
||||
#[cfg(not(jit))]
|
||||
global_asm! {
|
||||
"
|
||||
.global global_asm_test
|
||||
global_asm_test:
|
||||
// comment that would normally be removed by LLVM
|
||||
ret
|
||||
"
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue