Skip to content

Commit b4075cd

Browse files
committed
Make tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs no_core
1 parent 567359d commit b4075cd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
//
2-
//@ compile-flags: -C no-prepopulate-passes
3-
//@ only-riscv64
4-
//@ only-linux
1+
//@ compile-flags: -C no-prepopulate-passes --target riscv64gc-unknown-linux-gnu
2+
//@ needs-llvm-components: riscv64
3+
4+
#![feature(no_core, lang_items)]
55
#![crate_type = "lib"]
6+
#![no_std]
7+
#![no_core]
8+
9+
#[lang="sized"] trait Sized { }
10+
#[lang="freeze"] trait Freeze { }
11+
#[lang="copy"] trait Copy { }
612

713
// CHECK: define void @f_fpr_tracking(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, i8 noundef zeroext %i)
814
#[no_mangle]

0 commit comments

Comments
 (0)