e4f7561bcd
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
263 lines
5.5 KiB
Rust
263 lines
5.5 KiB
Rust
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
use std::libc;
|
|
|
|
pub fn main() {
|
|
let f = 1 as *libc::FILE;
|
|
info!(f as int);
|
|
info!(f as uint);
|
|
info!(f as i8);
|
|
info!(f as i16);
|
|
info!(f as i32);
|
|
info!(f as i64);
|
|
info!(f as u8);
|
|
info!(f as u16);
|
|
info!(f as u32);
|
|
info!(f as u64);
|
|
|
|
info!(1 as int);
|
|
info!(1 as uint);
|
|
info!(1 as float);
|
|
info!(1 as bool);
|
|
info!(1 as *libc::FILE);
|
|
info!(1 as i8);
|
|
info!(1 as i16);
|
|
info!(1 as i32);
|
|
info!(1 as i64);
|
|
info!(1 as u8);
|
|
info!(1 as u16);
|
|
info!(1 as u32);
|
|
info!(1 as u64);
|
|
info!(1 as f32);
|
|
info!(1 as f64);
|
|
|
|
info!(1u as int);
|
|
info!(1u as uint);
|
|
info!(1u as float);
|
|
info!(1u as bool);
|
|
info!(1u as *libc::FILE);
|
|
info!(1u as i8);
|
|
info!(1u as i16);
|
|
info!(1u as i32);
|
|
info!(1u as i64);
|
|
info!(1u as u8);
|
|
info!(1u as u16);
|
|
info!(1u as u32);
|
|
info!(1u as u64);
|
|
info!(1u as f32);
|
|
info!(1u as f64);
|
|
|
|
info!(1i8 as int);
|
|
info!(1i8 as uint);
|
|
info!(1i8 as float);
|
|
info!(1i8 as bool);
|
|
info!(1i8 as *libc::FILE);
|
|
info!(1i8 as i8);
|
|
info!(1i8 as i16);
|
|
info!(1i8 as i32);
|
|
info!(1i8 as i64);
|
|
info!(1i8 as u8);
|
|
info!(1i8 as u16);
|
|
info!(1i8 as u32);
|
|
info!(1i8 as u64);
|
|
info!(1i8 as f32);
|
|
info!(1i8 as f64);
|
|
|
|
info!(1u8 as int);
|
|
info!(1u8 as uint);
|
|
info!(1u8 as float);
|
|
info!(1u8 as bool);
|
|
info!(1u8 as *libc::FILE);
|
|
info!(1u8 as i8);
|
|
info!(1u8 as i16);
|
|
info!(1u8 as i32);
|
|
info!(1u8 as i64);
|
|
info!(1u8 as u8);
|
|
info!(1u8 as u16);
|
|
info!(1u8 as u32);
|
|
info!(1u8 as u64);
|
|
info!(1u8 as f32);
|
|
info!(1u8 as f64);
|
|
|
|
info!(1i16 as int);
|
|
info!(1i16 as uint);
|
|
info!(1i16 as float);
|
|
info!(1i16 as bool);
|
|
info!(1i16 as *libc::FILE);
|
|
info!(1i16 as i8);
|
|
info!(1i16 as i16);
|
|
info!(1i16 as i32);
|
|
info!(1i16 as i64);
|
|
info!(1i16 as u8);
|
|
info!(1i16 as u16);
|
|
info!(1i16 as u32);
|
|
info!(1i16 as u64);
|
|
info!(1i16 as f32);
|
|
info!(1i16 as f64);
|
|
|
|
info!(1u16 as int);
|
|
info!(1u16 as uint);
|
|
info!(1u16 as float);
|
|
info!(1u16 as bool);
|
|
info!(1u16 as *libc::FILE);
|
|
info!(1u16 as i8);
|
|
info!(1u16 as i16);
|
|
info!(1u16 as i32);
|
|
info!(1u16 as i64);
|
|
info!(1u16 as u8);
|
|
info!(1u16 as u16);
|
|
info!(1u16 as u32);
|
|
info!(1u16 as u64);
|
|
info!(1u16 as f32);
|
|
info!(1u16 as f64);
|
|
|
|
info!(1i32 as int);
|
|
info!(1i32 as uint);
|
|
info!(1i32 as float);
|
|
info!(1i32 as bool);
|
|
info!(1i32 as *libc::FILE);
|
|
info!(1i32 as i8);
|
|
info!(1i32 as i16);
|
|
info!(1i32 as i32);
|
|
info!(1i32 as i64);
|
|
info!(1i32 as u8);
|
|
info!(1i32 as u16);
|
|
info!(1i32 as u32);
|
|
info!(1i32 as u64);
|
|
info!(1i32 as f32);
|
|
info!(1i32 as f64);
|
|
|
|
info!(1u32 as int);
|
|
info!(1u32 as uint);
|
|
info!(1u32 as float);
|
|
info!(1u32 as bool);
|
|
info!(1u32 as *libc::FILE);
|
|
info!(1u32 as i8);
|
|
info!(1u32 as i16);
|
|
info!(1u32 as i32);
|
|
info!(1u32 as i64);
|
|
info!(1u32 as u8);
|
|
info!(1u32 as u16);
|
|
info!(1u32 as u32);
|
|
info!(1u32 as u64);
|
|
info!(1u32 as f32);
|
|
info!(1u32 as f64);
|
|
|
|
info!(1i64 as int);
|
|
info!(1i64 as uint);
|
|
info!(1i64 as float);
|
|
info!(1i64 as bool);
|
|
info!(1i64 as *libc::FILE);
|
|
info!(1i64 as i8);
|
|
info!(1i64 as i16);
|
|
info!(1i64 as i32);
|
|
info!(1i64 as i64);
|
|
info!(1i64 as u8);
|
|
info!(1i64 as u16);
|
|
info!(1i64 as u32);
|
|
info!(1i64 as u64);
|
|
info!(1i64 as f32);
|
|
info!(1i64 as f64);
|
|
|
|
info!(1u64 as int);
|
|
info!(1u64 as uint);
|
|
info!(1u64 as float);
|
|
info!(1u64 as bool);
|
|
info!(1u64 as *libc::FILE);
|
|
info!(1u64 as i8);
|
|
info!(1u64 as i16);
|
|
info!(1u64 as i32);
|
|
info!(1u64 as i64);
|
|
info!(1u64 as u8);
|
|
info!(1u64 as u16);
|
|
info!(1u64 as u32);
|
|
info!(1u64 as u64);
|
|
info!(1u64 as f32);
|
|
info!(1u64 as f64);
|
|
|
|
info!(1u64 as int);
|
|
info!(1u64 as uint);
|
|
info!(1u64 as float);
|
|
info!(1u64 as bool);
|
|
info!(1u64 as *libc::FILE);
|
|
info!(1u64 as i8);
|
|
info!(1u64 as i16);
|
|
info!(1u64 as i32);
|
|
info!(1u64 as i64);
|
|
info!(1u64 as u8);
|
|
info!(1u64 as u16);
|
|
info!(1u64 as u32);
|
|
info!(1u64 as u64);
|
|
info!(1u64 as f32);
|
|
info!(1u64 as f64);
|
|
|
|
info!(true as int);
|
|
info!(true as uint);
|
|
info!(true as float);
|
|
info!(true as bool);
|
|
info!(true as *libc::FILE);
|
|
info!(true as i8);
|
|
info!(true as i16);
|
|
info!(true as i32);
|
|
info!(true as i64);
|
|
info!(true as u8);
|
|
info!(true as u16);
|
|
info!(true as u32);
|
|
info!(true as u64);
|
|
info!(true as f32);
|
|
info!(true as f64);
|
|
|
|
info!(1. as int);
|
|
info!(1. as uint);
|
|
info!(1. as float);
|
|
info!(1. as bool);
|
|
info!(1. as i8);
|
|
info!(1. as i16);
|
|
info!(1. as i32);
|
|
info!(1. as i64);
|
|
info!(1. as u8);
|
|
info!(1. as u16);
|
|
info!(1. as u32);
|
|
info!(1. as u64);
|
|
info!(1. as f32);
|
|
info!(1. as f64);
|
|
|
|
info!(1f32 as int);
|
|
info!(1f32 as uint);
|
|
info!(1f32 as float);
|
|
info!(1f32 as bool);
|
|
info!(1f32 as i8);
|
|
info!(1f32 as i16);
|
|
info!(1f32 as i32);
|
|
info!(1f32 as i64);
|
|
info!(1f32 as u8);
|
|
info!(1f32 as u16);
|
|
info!(1f32 as u32);
|
|
info!(1f32 as u64);
|
|
info!(1f32 as f32);
|
|
info!(1f32 as f64);
|
|
|
|
info!(1f64 as int);
|
|
info!(1f64 as uint);
|
|
info!(1f64 as float);
|
|
info!(1f64 as bool);
|
|
info!(1f64 as i8);
|
|
info!(1f64 as i16);
|
|
info!(1f64 as i32);
|
|
info!(1f64 as i64);
|
|
info!(1f64 as u8);
|
|
info!(1f64 as u16);
|
|
info!(1f64 as u32);
|
|
info!(1f64 as u64);
|
|
info!(1f64 as f32);
|
|
info!(1f64 as f64);
|
|
}
|