mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// aux-build:nounwind.rs
 | 
						|
// compile-flags: -C no-prepopulate-passes -C panic=abort -C metadata=a
 | 
						|
// ignore-windows
 | 
						|
// ignore-android
 | 
						|
 | 
						|
#![crate_type = "lib"]
 | 
						|
 | 
						|
extern crate nounwind;
 | 
						|
 | 
						|
#[no_mangle]
 | 
						|
pub fn foo() {
 | 
						|
    nounwind::bar();
 | 
						|
// CHECK: @foo() unnamed_addr #0
 | 
						|
// CHECK: @bar() unnamed_addr #0
 | 
						|
// CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
 | 
						|
}
 |