mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // check-pass
 | |
| 
 | |
| #![feature(c_variadic)]
 | |
| 
 | |
| extern "C" {
 | |
|     fn foo(f: isize, x: u8, ...);
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     unsafe {
 | |
|         // FIXME: Ideally we could give an unreachable warning
 | |
|         foo(1, loop {}, 1usize);
 | |
|     }
 | |
| }
 | 
