1 // Testing the display of range types in cdb.
4 // min-cdb-version: 10.0.18317.1001
7 // === CDB TESTS ==================================================================================
11 // cdb-command: dx r1,d
12 // cdb-check:r1,d [Type: core::ops::range::Range<i32>]
13 // cdb-check: [...] start : 3 [Type: int]
14 // cdb-check: [...] end : 5 [Type: int]
16 // cdb-command: dx r2,d
17 // cdb-check:r2,d [Type: core::ops::range::RangeFrom<i32>]
18 // cdb-check: [...] start : 2 [Type: int]
20 // cdb-command: dx r3,d
21 // cdb-check:r3,d [Type: core::ops::range::RangeInclusive<i32>]
22 // cdb-check: [...] start : 1 [Type: int]
23 // cdb-check: [...] end : 4 [Type: int]
24 // cdb-check: [...] exhausted : false [Type: bool]
26 // cdb-command: dx r4,d
27 // cdb-check:r4,d [Type: core::ops::range::RangeToInclusive<i32>]
28 // cdb-check: [...] end : 3 [Type: int]
30 // cdb-command: dx r5,d
31 // cdb-check:r5,d [Type: core::ops::range::RangeFull]
33 #[allow(unused_variables)]
35 use std::ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeToInclusive};
39 let r1 = Range{start: 3, end: 5};
40 let r2 = RangeFrom{start: 2};
41 let r3 = RangeInclusive::new(1, 4);
42 let r4 = RangeToInclusive{end: 3};