Skip to content

Commit 1542660

Browse files
committed
Make regparm-module-flag.rs a minicore test
1 parent 5b11dfa commit 1542660

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/assembly-llvm/regparm-module-flag.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
//@ add-core-stubs
12
//@ assembly-output: emit-asm
2-
//@ compile-flags: -O -Zregparm=3 -Cunsafe-allow-abi-mismatch=regparm
3+
//@ compile-flags: -O -Zregparm=3
34
//@ only-x86
45

6+
#![feature(no_core)]
7+
#![no_std]
8+
#![no_core]
59
#![crate_type = "lib"]
610

7-
use std::ffi::c_void;
11+
use minicore::*;
812

913
unsafe extern "C" {
1014
fn memset(p: *mut c_void, val: i32, len: usize) -> *mut c_void;

0 commit comments

Comments
 (0)