mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			234 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			234 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// 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
 | 
						|
}
 |