diff options
Diffstat (limited to 'src/test/debuginfo/borrowed-managed-basic.rs')
| -rw-r--r-- | src/test/debuginfo/borrowed-managed-basic.rs | 166 |
1 files changed, 0 insertions, 166 deletions
diff --git a/src/test/debuginfo/borrowed-managed-basic.rs b/src/test/debuginfo/borrowed-managed-basic.rs deleted file mode 100644 index a2b8c54c380..00000000000 --- a/src/test/debuginfo/borrowed-managed-basic.rs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2013-2014 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. - -// ignore-android: FIXME(#10381) - - -// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only -// its numerical value. - -// compile-flags:-g - -// === GDB TESTS =================================================================================== - -// gdb-command:rbreak zzz -// gdb-command:run -// gdb-command:finish -// gdb-command:print *bool_ref -// gdb-check:$1 = true - -// gdb-command:print *int_ref -// gdb-check:$2 = -1 - -// gdb-command:print *char_ref -// gdb-check:$3 = 97 - -// gdb-command:print/d *i8_ref -// gdb-check:$4 = 68 - -// gdb-command:print *i16_ref -// gdb-check:$5 = -16 - -// gdb-command:print *i32_ref -// gdb-check:$6 = -32 - -// gdb-command:print *i64_ref -// gdb-check:$7 = -64 - -// gdb-command:print *uint_ref -// gdb-check:$8 = 1 - -// gdb-command:print/d *u8_ref -// gdb-check:$9 = 100 - -// gdb-command:print *u16_ref -// gdb-check:$10 = 16 - -// gdb-command:print *u32_ref -// gdb-check:$11 = 32 - -// gdb-command:print *u64_ref -// gdb-check:$12 = 64 - -// gdb-command:print *f32_ref -// gdb-check:$13 = 2.5 - -// gdb-command:print *f64_ref -// gdb-check:$14 = 3.5 - - -// === LLDB TESTS ================================================================================== - -// lldb-command:type format add -f decimal char -// lldb-command:type format add -f decimal 'unsigned char' -// lldb-command:run - -// lldb-command:print *bool_ref -// lldb-check:[...]$0 = true - -// lldb-command:print *int_ref -// lldb-check:[...]$1 = -1 - -// LLDB can't handle 32bit chars yet -// d ebugger:print *char_ref -// c heck:[...]$x = 97 - -// lldb-command:print *i8_ref -// lldb-check:[...]$2 = 68 - -// lldb-command:print *i16_ref -// lldb-check:[...]$3 = -16 - -// lldb-command:print *i32_ref -// lldb-check:[...]$4 = -32 - -// lldb-command:print *i64_ref -// lldb-check:[...]$5 = -64 - -// lldb-command:print *uint_ref -// lldb-check:[...]$6 = 1 - -// lldb-command:print *u8_ref -// lldb-check:[...]$7 = 100 - -// lldb-command:print *u16_ref -// lldb-check:[...]$8 = 16 - -// lldb-command:print *u32_ref -// lldb-check:[...]$9 = 32 - -// lldb-command:print *u64_ref -// lldb-check:[...]$10 = 64 - -// lldb-command:print *f32_ref -// lldb-check:[...]$11 = 2.5 - -// lldb-command:print *f64_ref -// lldb-check:[...]$12 = 3.5 - -#![allow(unused_variable)] - -use std::gc::{Gc, GC}; - -fn main() { - let bool_box: Gc<bool> = box(GC) true; - let bool_ref: &bool = &*bool_box; - - let int_box: Gc<int> = box(GC) -1; - let int_ref: &int = &*int_box; - - let char_box: Gc<char> = box(GC) 'a'; - let char_ref: &char = &*char_box; - - let i8_box: Gc<i8> = box(GC) 68; - let i8_ref: &i8 = &*i8_box; - - let i16_box: Gc<i16> = box(GC) -16; - let i16_ref: &i16 = &*i16_box; - - let i32_box: Gc<i32> = box(GC) -32; - let i32_ref: &i32 = &*i32_box; - - let i64_box: Gc<i64> = box(GC) -64; - let i64_ref: &i64 = &*i64_box; - - let uint_box: Gc<uint> = box(GC) 1; - let uint_ref: &uint = &*uint_box; - - let u8_box: Gc<u8> = box(GC) 100; - let u8_ref: &u8 = &*u8_box; - - let u16_box: Gc<u16> = box(GC) 16; - let u16_ref: &u16 = &*u16_box; - - let u32_box: Gc<u32> = box(GC) 32; - let u32_ref: &u32 = &*u32_box; - - let u64_box: Gc<u64> = box(GC) 64; - let u64_ref: &u64 = &*u64_box; - - let f32_box: Gc<f32> = box(GC) 2.5; - let f32_ref: &f32 = &*f32_box; - - let f64_box: Gc<f64> = box(GC) 3.5; - let f64_ref: &f64 = &*f64_box; - - zzz(); // #break -} - -fn zzz() {()} |
