mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			328 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			328 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// compile-flags: -C no-prepopulate-passes
 | 
						|
#![crate_type = "lib"]
 | 
						|
#![feature(ffi_returns_twice)]
 | 
						|
 | 
						|
pub fn bar() { unsafe { foo() } }
 | 
						|
 | 
						|
extern "C" {
 | 
						|
    // CHECK: declare{{( dso_local)?}} void @foo(){{.*}}[[ATTRS:#[0-9]+]]
 | 
						|
    // CHECK: attributes [[ATTRS]] = { {{.*}}returns_twice{{.*}} }
 | 
						|
    #[ffi_returns_twice] pub fn foo();
 | 
						|
}
 |