Fix tests

This commit is contained in:
Antoni Boucher 2023-01-09 17:27:28 -05:00
parent 2bf7fb402b
commit f1f136bb66
2 changed files with 3 additions and 14 deletions

View File

@ -46,7 +46,6 @@ pub fn main_inner(profile: Profile) {
&format!("-Zcodegen-backend={}/target/debug/librustc_codegen_gcc.so", current_dir), &format!("-Zcodegen-backend={}/target/debug/librustc_codegen_gcc.so", current_dir),
"--sysroot", &format!("{}/build_sysroot/sysroot/", current_dir), "--sysroot", &format!("{}/build_sysroot/sysroot/", current_dir),
"-Zno-parallel-llvm", "-Zno-parallel-llvm",
"-C", "panic=abort",
"-C", "link-arg=-lc", "-C", "link-arg=-lc",
"-o", exe.to_str().expect("to_str"), "-o", exe.to_str().expect("to_str"),
path.to_str().expect("to_str"), path.to_str().expect("to_str"),

View File

@ -3,22 +3,14 @@
// Run-time: // Run-time:
// status: 0 // status: 0
#![feature(bench_black_box, const_black_box, core_intrinsics, start)] #![feature(bench_black_box, const_black_box)]
#![no_std]
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
core::intrinsics::abort();
}
/* /*
* Code * Code
*/ */
#[start] fn main() {
fn main(_argc: isize, _argv: *const *const u8) -> isize { use std::hint::black_box;
use core::hint::black_box;
macro_rules! check { macro_rules! check {
($ty:ty, $expr:expr) => { ($ty:ty, $expr:expr) => {
@ -335,6 +327,4 @@ macro_rules! check_ops32 {
const VAL5: T = 73236519889708027473620326106273939584_i128; const VAL5: T = 73236519889708027473620326106273939584_i128;
check_ops128!(); check_ops128!();
} }
0
} }