mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			378 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			378 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Checks that the last `-Z instrument-xray` option wins.
 | 
						|
//
 | 
						|
//@ needs-xray
 | 
						|
//@ compile-flags: -Z instrument-xray=always -Copt-level=0
 | 
						|
//@ compile-flags: -Z instrument-xray=never -Copt-level=0
 | 
						|
 | 
						|
#![crate_type = "lib"]
 | 
						|
 | 
						|
// CHECK:      attributes #{{.*}} "function-instrument"="xray-never"
 | 
						|
// CHECK-NOT:  attributes #{{.*}} "function-instrument"="xray-always"
 | 
						|
pub fn function() {}
 |