mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This tests that the safestack attribute is applied when enabling the safe-stack sanitizer.
 | |
| //
 | |
| //@ needs-sanitizer-safestack
 | |
| //@ compile-flags: -Zsanitizer=safestack -Copt-level=0
 | |
| 
 | |
| #![crate_type = "lib"]
 | |
| 
 | |
| // CHECK: ; Function Attrs:{{.*}}safestack
 | |
| pub fn tagged() {}
 | |
| 
 | |
| // CHECK: attributes #0 = {{.*}}safestack
 | 
