]> git.lizzy.rs Git - rust.git/blob - tests/codegen/bpf-alu32.rs
Auto merge of #106294 - Nilstrieb:noundef-everything, r=nikic
[rust.git] / tests / codegen / bpf-alu32.rs
1 // only-bpf
2 #![crate_type = "lib"]
3 #![feature(bpf_target_feature)]
4 #![no_std]
5
6 #[no_mangle]
7 #[target_feature(enable = "alu32")]
8 // CHECK: define i8 @foo(i8 returned %arg) unnamed_addr #0 {
9 pub unsafe fn foo(arg: u8) -> u8 {
10     arg
11 }