mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 1a29d9c23f
			
		
	
	
		1a29d9c23f
		
	
	
	
	
		
			
			This is intended to be used for Linux kernel RETPOLINE builds. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
		
			
				
	
	
		
			19 lines
		
	
	
		
			575 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			575 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test that the `indirect_branch_cs_prefix` module attribute is (not)
 | |
| // emitted when the `-Zindirect-branch-cs-prefix` flag is (not) set.
 | |
| 
 | |
| //@ add-core-stubs
 | |
| //@ revisions: unset set
 | |
| //@ needs-llvm-components: x86
 | |
| //@ compile-flags: --target x86_64-unknown-linux-gnu
 | |
| //@ [set] compile-flags: -Zindirect-branch-cs-prefix
 | |
| 
 | |
| #![crate_type = "lib"]
 | |
| #![feature(no_core, lang_items)]
 | |
| #![no_core]
 | |
| 
 | |
| extern crate minicore;
 | |
| use minicore::*;
 | |
| 
 | |
| // unset-NOT: !{{[0-9]+}} = !{i32 4, !"indirect_branch_cs_prefix", i32 1}
 | |
| // set: !{{[0-9]+}} = !{i32 4, !"indirect_branch_cs_prefix", i32 1}
 |