about summary refs log tree commit diff
path: root/tests/codegen-llvm/bpf-alu32.rs
blob: 5955bf3317f05dd5ee6b0e071abc66607fdec88a (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ only-bpf
#![crate_type = "lib"]
#![feature(bpf_target_feature)]
#![no_std]

#[no_mangle]
#[target_feature(enable = "alu32")]
// CHECK: define i8 @foo(i8 returned %arg) unnamed_addr #0 {
pub unsafe fn foo(arg: u8) -> u8 {
    arg
}