We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1542660 commit 06162f3Copy full SHA for 06162f3
tests/assembly-llvm/regparm-module-flag.rs
@@ -1,15 +1,18 @@
1
//@ add-core-stubs
2
//@ assembly-output: emit-asm
3
-//@ compile-flags: -O -Zregparm=3
4
-//@ only-x86
+//@ compile-flags: -O -Zregparm=3 --target=i686-unknown-linux-gnu -C relocation-model=static
+//@ needs-llvm-components: x86
5
6
#![feature(no_core)]
7
#![no_std]
8
#![no_core]
9
#![crate_type = "lib"]
10
11
+extern crate minicore;
12
use minicore::*;
13
14
+type c_void = u8;
15
+
16
unsafe extern "C" {
17
fn memset(p: *mut c_void, val: i32, len: usize) -> *mut c_void;
18
}
0 commit comments