Skip to content

Commit c249a60

Browse files
committed
tests: codegen-llvm: Use minicore in bpf-alu32
Instead of keeping it as `only-bpf`, use minicore. This way we make sure it will never get outdated again.
1 parent 1b271d1 commit c249a60

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/codegen-llvm/bpf-alu32.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
//@ only-bpf
1+
//@ add-minicore
2+
//@ compile-flags: --target=bpfel-unknown-none
3+
//@ needs-llvm-components: bpf
24
#![crate_type = "lib"]
3-
#![feature(bpf_target_feature)]
5+
#![feature(bpf_target_feature, no_core)]
6+
#![no_core]
47
#![no_std]
58

9+
extern crate minicore;
10+
use minicore::*;
11+
612
#[no_mangle]
713
#[target_feature(enable = "alu32")]
814
// CHECK: define noundef zeroext i8 @foo(i8 noundef returned %arg) unnamed_addr #0 {

0 commit comments

Comments
 (0)