update tests
This commit is contained in:
parent
95b031e7a8
commit
af1c2b277d
19 changed files with 46 additions and 45 deletions
|
|
@ -13,7 +13,7 @@
|
|||
// lldb-command:v I
|
||||
// lldb-check: ::I = -1
|
||||
// lldb-command:v --format=d C
|
||||
// lldb-check: ::C = 97
|
||||
// lldb-check: ::C = 97 U+0x00000061 U'a'
|
||||
// lldb-command:v --format=d I8
|
||||
// lldb-check: ::I8 = 68
|
||||
// lldb-command:v I16
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v *the_a_ref
|
||||
// lldb-check:(borrowed_enum::ABC) *the_a_ref = { TheA = { x = 0 y = 8970181431921507452 } }
|
||||
// lldb-check:(borrowed_enum::ABC) *the_a_ref = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
// lldb-command:v *the_b_ref
|
||||
// lldb-check:(borrowed_enum::ABC) *the_b_ref = { TheB = { 0 = 0 1 = 286331153 2 = 286331153 } }
|
||||
// lldb-check:(borrowed_enum::ABC) *the_b_ref = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
|
||||
// lldb-command:v *univariant_ref
|
||||
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { TheOnlyCase = { 0 = 4820353753753434 } }
|
||||
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = TheOnlyCase(4820353753753434) { 0 = 4820353753753434 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
// lldb-check:[...] { 0 = 0 1 = OneHundred }
|
||||
|
||||
// lldb-command:v tuple_padding_at_end
|
||||
// lldb-check:[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }
|
||||
// lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
|
||||
|
||||
// lldb-command:v tuple_different_enums
|
||||
// lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
// lldb-command:run
|
||||
// lldb-command:v b
|
||||
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = { value = { _ref__a = 0x[...] } $discr$ = [...] }
|
||||
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v *abc
|
||||
// lldb-check:(enum_thinlto::ABC) *abc = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
|
||||
// lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = { 0 = 8888 1 = -8888 } }
|
||||
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = { 0 = 8888 1 = -8888 } }
|
||||
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
// lldb-check:(issue_57822::main::{closure_env#1}) g = { f = { x = 1 } }
|
||||
|
||||
// lldb-command:v b
|
||||
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = { value = { a = { value = { y = 2 } $discr$ = '\x02' } } $discr$ = '\x02' }
|
||||
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = 2{a:2{y:2}} { a = 2{y:2} { y = 2 } }
|
||||
|
||||
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = { 0 = 8888 1 = -8888 } }
|
||||
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...]Struct<(u32, i32)>) self = { x = { 0 = 8888 1 = -8888 } }
|
||||
// lldb-check:[...]Struct<(u32, i32)>) self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
//@ only-msvc
|
||||
//@ min-lldb-version: 1800
|
||||
//@ ignore-gdb
|
||||
//@ compile-flags:-g
|
||||
|
|
|
|||
|
|
@ -40,31 +40,31 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v some
|
||||
// lldb-check:[...] Some(&0x[...])
|
||||
// lldb-check:[...] Some(0x[...]) { 0 = 0x[...] }
|
||||
|
||||
// lldb-command:v none
|
||||
// lldb-check:[...] None
|
||||
|
||||
// lldb-command:v full
|
||||
// lldb-check:[...] Full(454545, &0x[...], 9988)
|
||||
// lldb-check:[...] Full(454545, 0x[...], 9988) { 0 = 454545 1 = 0x[...] 2 = 9988 }
|
||||
|
||||
// lldb-command:v empty
|
||||
// lldb-check:[...] Empty
|
||||
|
||||
// lldb-command:v droid
|
||||
// lldb-check:[...] Droid { id: 675675, range: 10000001, internals: &0x[...] }
|
||||
// lldb-check:[...] Droid{id:675675, range:10000001, internals:0x[...]} { id = 675675 range = 10000001 internals = 0x[...] }
|
||||
|
||||
// lldb-command:v void_droid
|
||||
// lldb-check:[...] Void
|
||||
|
||||
// lldb-command:v some_str
|
||||
// lldb-check:[...] Some("abc")
|
||||
// lldb-check:[...] Some("abc") [...]
|
||||
|
||||
// lldb-command:v none_str
|
||||
// lldb-check:[...] None
|
||||
|
||||
// lldb-command:v nested_non_zero_yep
|
||||
// lldb-check:[...] Yep(10.5, NestedNonZeroField { a: 10, b: 20, c: &[...] })
|
||||
// lldb-check:[...] Yep(10.5, {a:10, b:20, c:[...]}) { 0 = 10.5 1 = { a = 10 b = 20 c = [...] } }
|
||||
|
||||
// lldb-command:v nested_non_zero_nope
|
||||
// lldb-check:[...] Nope
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
// lldb-check:[...] size=7 { [0] = 2 [1] = 3 [2] = 4 [3] = 5 [4] = 6 [5] = 7 [6] = 8 }
|
||||
|
||||
// lldb-command:v hash_map
|
||||
// lldb-check:[...] size=4 { [0] = { 0 = 1 1 = 10 } [1] = { 0 = 2 1 = 20 } [2] = { 0 = 3 1 = 30 } [3] = { 0 = 4 1 = 40 } }
|
||||
// lldb-check:[...] size=4 { [0] = (1, 10) { 0 = 1 1 = 10 } [1] = (2, 20) { 0 = 2 1 = 20 } [2] = (3, 30) { 0 = 3 1 = 30 } [3] = (4, 40) { 0 = 4 1 = 40 } }
|
||||
|
||||
// lldb-command:v hash_set
|
||||
// lldb-check:[...] size=4 { [0] = 1 [1] = 2 [2] = 3 [3] = 4 }
|
||||
|
|
|
|||
|
|
@ -31,15 +31,14 @@
|
|||
// lldb-check:(&str) plain_str = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' }
|
||||
|
||||
// lldb-command:v str_in_struct
|
||||
// lldb-check:((&str, &str)) str_in_tuple = { 0 = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } 1 = "World" { [0] = 'W' [1] = 'o' [2] = 'r' [3] = 'l' [4] = 'd' } }
|
||||
// lldb-check:(strings_and_strs::Foo) str_in_struct = { inner = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } }
|
||||
|
||||
// lldb-command:v str_in_tuple
|
||||
// lldb-check:((&str, &str)) str_in_tuple = { 0 = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } 1 = "World" { [0] = 'W' [1] = 'o' [2] = 'r' [3] = 'l' [4] = 'd' } }
|
||||
// lldb-check:((&str, &str)) str_in_tuple = ("Hello", "World") { 0 = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } 1 = "World" { [0] = 'W' [1] = 'o' [2] = 'r' [3] = 'l' [4] = 'd' } }
|
||||
|
||||
// lldb-command:v str_in_rc
|
||||
// lldb-check:(alloc::rc::Rc<&str, alloc::alloc::Global>) str_in_rc = strong=1, weak=0 { value = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } }
|
||||
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
pub struct Foo<'a> {
|
||||
|
|
|
|||
|
|
@ -24,12 +24,13 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v case1
|
||||
// lldb-check:[...] Case1(0, Struct { x: 2088533116, y: 2088533116, z: 31868 })
|
||||
// lldb-check:[...] Case1(0, {x:2088533116, y:2088533116, z:31868}) { 0 = 0 1 = { x = 2088533116 y = 2088533116 z = 31868 } }
|
||||
|
||||
// lldb-command:v case2
|
||||
// lldb-check:[...] Case2(0, 1229782938247303441, 4369)
|
||||
// lldb-check:[...] Case2(0, 1229782938247303441, 4369) { 0 = 0 1 = 1229782938247303441 2 = 4369 }
|
||||
|
||||
// lldb-command:v univariant
|
||||
// lldb-check:[...] TheOnlyCase(Struct { x: 123, y: 456, z: 789 })
|
||||
// lldb-check:[...] TheOnlyCase({x:123, y:456, z:789}) { 0 = { x = 123 y = 456 z = 789 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -26,16 +26,16 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v case1
|
||||
// lldb-check:(struct_style_enum::Regular) case1 = { value = { a = 0 b = 31868 c = 31868 d = 31868 e = 31868 } $discr$ = 0 }
|
||||
// lldb-check:(struct_style_enum::Regular) case1 = Case1{a:0, b:31868, c:31868, d:31868, e:31868} { a = 0 b = 31868 c = 31868 d = 31868 e = 31868 }
|
||||
|
||||
// lldb-command:v case2
|
||||
// lldb-check:(struct_style_enum::Regular) case2 = { value = { a = 0 b = 286331153 c = 286331153 } $discr$ = 1 }
|
||||
// lldb-check:(struct_style_enum::Regular) case2 = Case2{a:0, b:286331153, c:286331153} { a = 0 b = 286331153 c = 286331153 }
|
||||
|
||||
// lldb-command:v case3
|
||||
// lldb-check:(struct_style_enum::Regular) case3 = { value = { a = 0 b = 6438275382588823897 } $discr$ = 2 }
|
||||
// lldb-check:(struct_style_enum::Regular) case3 = Case3{a:0, b:6438275382588823897} { a = 0 b = 6438275382588823897 }
|
||||
|
||||
// lldb-command:v univariant
|
||||
// lldb-check:(struct_style_enum::Univariant) univariant = { value = { a = -1 } }
|
||||
// lldb-check:(struct_style_enum::Univariant) univariant = TheOnlyCase{a:-1} { a = -1 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -29,21 +29,21 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v no_padding1
|
||||
// lldb-check:[...] { 0 = { 0 = 0 1 = 1 } 1 = 2 2 = 3 }
|
||||
// lldb-check:[...] ((0, 1), 2, 3) { 0 = (0, 1) { 0 = 0 1 = 1 } 1 = 2 2 = 3 }
|
||||
// lldb-command:v no_padding2
|
||||
// lldb-check:[...] { 0 = 4 1 = { 0 = 5 1 = 6 } 2 = 7 }
|
||||
// lldb-check:[...] (4, (5, 6), 7) { 0 = 4 1 = (5, 6) { 0 = 5 1 = 6 } 2 = 7 }
|
||||
// lldb-command:v no_padding3
|
||||
// lldb-check:[...] { 0 = 8 1 = 9 2 = { 0 = 10 1 = 11 } }
|
||||
// lldb-check:[...] (8, 9, (10, 11)) { 0 = 8 1 = 9 2 = (10, 11) { 0 = 10 1 = 11 } }
|
||||
|
||||
// lldb-command:v internal_padding1
|
||||
// lldb-check:[...] { 0 = 12 1 = { 0 = 13 1 = 14 } }
|
||||
// lldb-check:[...] (12, (13, 14)) { 0 = 12 1 = (13, 14) { 0 = 13 1 = 14 } }
|
||||
// lldb-command:v internal_padding2
|
||||
// lldb-check:[...] { 0 = 15 1 = { 0 = 16 1 = 17 } }
|
||||
// lldb-check:[...] (15, (16, 17)) { 0 = 15 1 = (16, 17) { 0 = 16 1 = 17 } }
|
||||
|
||||
// lldb-command:v padding_at_end1
|
||||
// lldb-check:[...] { 0 = 18 1 = { 0 = 19 1 = 20 } }
|
||||
// lldb-check:[...] (18, (19, 20)) { 0 = 18 1 = (19, 20) { 0 = 19 1 = 20 } }
|
||||
// lldb-command:v padding_at_end2
|
||||
// lldb-check:[...] { 0 = { 0 = 21 1 = 22 } 1 = 23 }
|
||||
// lldb-check:[...] ((21, 22), 23) { 0 = (21, 22) { 0 = 21 1 = 22 } 1 = 23 }
|
||||
|
||||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
|
|
|||
|
|
@ -27,16 +27,16 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v case1
|
||||
// lldb-check:(tuple_style_enum::Regular) case1 = { value = { 0 = 0 1 = 31868 2 = 31868 3 = 31868 4 = 31868 } $discr$ = 0 }
|
||||
// lldb-check:(tuple_style_enum::Regular) case1 = Case1(0, 31868, 31868, 31868, 31868) { 0 = 0 1 = 31868 2 = 31868 3 = 31868 4 = 31868 }
|
||||
|
||||
// lldb-command:v case2
|
||||
// lldb-check:(tuple_style_enum::Regular) case2 = { value = { 0 = 0 1 = 286331153 2 = 286331153 } $discr$ = 1 }
|
||||
// lldb-check:(tuple_style_enum::Regular) case2 = Case2(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
|
||||
|
||||
// lldb-command:v case3
|
||||
// lldb-check:(tuple_style_enum::Regular) case3 = { value = { 0 = 0 1 = 6438275382588823897 } $discr$ = 2 }
|
||||
// lldb-check:(tuple_style_enum::Regular) case3 = Case3(0, 6438275382588823897) { 0 = 0 1 = 6438275382588823897 }
|
||||
|
||||
// lldb-command:v univariant
|
||||
// lldb-check:(tuple_style_enum::Univariant) univariant = { value = { 0 = -1 } }
|
||||
// lldb-check:(tuple_style_enum::Univariant) univariant = TheOnlyCase(-1) { 0 = -1 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
// lldb-command:run
|
||||
// lldb-command:v u
|
||||
// lldb-check:[...] { a = { 0 = '\x02' 1 = '\x02' } b = 514 }
|
||||
// lldb-check:[...] { a = ('\x02', '\x02') { 0 = '\x02' 1 = '\x02' } b = 514 }
|
||||
|
||||
// lldb-command:print union_smoke::SU
|
||||
// lldb-check:[...] { a = { 0 = '\x01' 1 = '\x01' } b = 257 }
|
||||
// lldb-check:[...] { a = ('\x01', '\x01') { 0 = '\x01' 1 = '\x01' } b = 257 }
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
|
|
|
|||
|
|
@ -23,13 +23,13 @@
|
|||
// lldb-command:run
|
||||
|
||||
// lldb-command:v *the_a
|
||||
// lldb-check:(unique_enum::ABC) *the_a = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
|
||||
// lldb-check:(unique_enum::ABC) *the_a = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
|
||||
// lldb-command:v *the_b
|
||||
// lldb-check:(unique_enum::ABC) *the_b = { value = { 0 = 0 1 = 286331153 2 = 286331153 } $discr$ = 1 }
|
||||
// lldb-check:(unique_enum::ABC) *the_b = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
|
||||
|
||||
// lldb-command:v *univariant
|
||||
// lldb-check:(unique_enum::Univariant) *univariant = { value = { 0 = 123234 } }
|
||||
// lldb-check:(unique_enum::Univariant) *univariant = TheOnlyCase(123234) { 0 = 123234 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
// lldb-check:[...] size=2 { [0] = 3 [1] = 4 }
|
||||
|
||||
// lldb-command:v padded_tuple
|
||||
// lldb-check:[...] size=2 { [0] = { 0 = 6 1 = 7 } [1] = { 0 = 8 1 = 9 } }
|
||||
// lldb-check:[...] size=2 { [0] = (6, 7) { 0 = 6 1 = 7 } [1] = (8, 9) { 0 = 8 1 = 9 } }
|
||||
|
||||
// lldb-command:v padded_struct
|
||||
// lldb-check:[...] size=2 { [0] = { x = 10 y = 11 z = 12 } [1] = { x = 13 y = 14 z = 15 } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue