mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-28 11:38:01 +00:00 
			
		
		
		
	 92eb4450fa
			
		
	
	
		92eb4450fa
		
			
		
	
	
	
	
		
			
			minicore makes it much easier to add new language items to all of the existing `no_core` tests.
		
			
				
	
	
		
			18 lines
		
	
	
		
			473 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			473 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ add-core-stubs
 | |
| //@ revisions: WINDOWS_ ANDROID_
 | |
| //@ compile-flags: -C panic=abort -Copt-level=0
 | |
| //@ [WINDOWS_] compile-flags: --target=x86_64-pc-windows-msvc
 | |
| //@ [WINDOWS_] needs-llvm-components: x86
 | |
| //@ [ANDROID_] compile-flags: --target=armv7-linux-androideabi
 | |
| //@ [ANDROID_] needs-llvm-components: arm
 | |
| 
 | |
| #![feature(no_core, lang_items)]
 | |
| #![crate_type = "lib"]
 | |
| #![no_core]
 | |
| 
 | |
| extern crate minicore;
 | |
| use minicore::*;
 | |
| 
 | |
| // CHECK: attributes #{{.*}} uwtable
 | |
| pub fn foo() {}
 |