4 // === CDB TESTS ==================================================================================
8 // cdb-command: .nvlist
9 // cdb-check: [...].exe (embedded NatVis "[...]msvc_embedded_natvis-0.natvis")
11 // cdb-command: dx point_a
12 // cdb-check:point_a : (0, 0) [Type: msvc_embedded_natvis::Point]
13 // cdb-check: [<Raw View>] [Type: msvc_embedded_natvis::Point]
14 // cdb-check: [x] : 0 [Type: int]
15 // cdb-check: [y] : 0 [Type: int]
17 // cdb-command: dx point_b
18 // cdb-check:point_b : (5, 8) [Type: msvc_embedded_natvis::Point]
19 // cdb-check: [<Raw View>] [Type: msvc_embedded_natvis::Point]
20 // cdb-check: [x] : 5 [Type: int]
21 // cdb-check: [y] : 8 [Type: int]
23 // cdb-command: dx line
24 // cdb-check:line : ((0, 0), (5, 8)) [Type: msvc_embedded_natvis::Line]
25 // cdb-check: [<Raw View>] [Type: msvc_embedded_natvis::Line]
26 // cdb-check: [a] : (0, 0) [Type: msvc_embedded_natvis::Point]
27 // cdb-check: [b] : (5, 8) [Type: msvc_embedded_natvis::Point]
29 #![feature(debugger_visualizer)]
30 #![debugger_visualizer(natvis_file = "msvc-embedded-natvis.natvis")]
38 pub fn new(x: i32, y: i32) -> Point {
49 pub fn new(a: Point, b: Point) -> Line {
55 let point_a = Point::new(0, 0);
56 let point_b = Point::new(5, 8);
57 let line = Line::new(point_a, point_b);