|
2 | 2 |
|
3 | 3 | //@ ignore-windows-gnu: #128981
|
4 | 4 |
|
| 5 | +// Note: u128 visualization was not supported in 10.0.22621.3233 but was fixed in 10.0.26100.2161. |
| 6 | + |
| 7 | +// FIXME(#133107): this is temporarily marked as `only-64bit` because of course 32-bit msvc has |
| 8 | +// a different integer width and thus underlying integer type display. Only marked as such to |
| 9 | +// unblock the tree. |
| 10 | +//@ only-64bit |
| 11 | +//@ min-cdb-version: 10.0.26100.2161 |
| 12 | + |
5 | 13 | // Tests the visualizations for `NonZero<T>`, `Wrapping<T>` and
|
6 | 14 | // `Atomic{Bool,I8,I16,I32,I64,Isize,U8,U16,U32,U64,Usize}` located in `libcore.natvis`.
|
7 | 15 |
|
|
48 | 56 | // cdb-check:nz_u64 : 0x64 [Type: core::num::nonzero::NonZero<u64>]
|
49 | 57 | // cdb-check: [<Raw View>] [Type: core::num::nonzero::NonZero<u64>]
|
50 | 58 |
|
51 |
| -// 128-bit integers don't seem to work in CDB |
52 | 59 | // cdb-command: dx nz_u128
|
| 60 | +// cdb-check:nz_u128 : 111 [Type: core::num::nonzero::NonZero<u128>] |
53 | 61 | // cdb-check: [<Raw View>] [Type: core::num::nonzero::NonZero<u128>]
|
54 | 62 |
|
55 | 63 | // cdb-command: dx nz_usize
|
|
58 | 66 |
|
59 | 67 | // cdb-command: dx w_i8
|
60 | 68 | // cdb-check:w_i8 : 10 [Type: core::num::wrapping::Wrapping<i8>]
|
61 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<i8>] |
| 69 | +// cdb-check: [+0x000] __0 : 10 [Type: char] |
62 | 70 |
|
63 | 71 | // cdb-command: dx w_i16
|
64 | 72 | // cdb-check:w_i16 : 20 [Type: core::num::wrapping::Wrapping<i16>]
|
65 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<i16>] |
| 73 | +// cdb-check: [+0x000] __0 : 20 [Type: short] |
66 | 74 |
|
67 | 75 | // cdb-command: dx w_i32
|
68 | 76 | // cdb-check:w_i32 : 30 [Type: core::num::wrapping::Wrapping<i32>]
|
69 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<i32>] |
| 77 | +// cdb-check: [+0x000] __0 : 30 [Type: int] |
70 | 78 |
|
71 | 79 | // cdb-command: dx w_i64
|
72 | 80 | // cdb-check:w_i64 : 40 [Type: core::num::wrapping::Wrapping<i64>]
|
73 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<i64>] |
| 81 | +// cdb-check: [+0x000] __0 : 40 [Type: __int64] |
74 | 82 |
|
75 |
| -// 128-bit integers don't seem to work in CDB |
76 | 83 | // cdb-command: dx w_i128
|
77 |
| -// cdb-check:w_i128 [Type: core::num::wrapping::Wrapping<i128>] |
78 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<i128>] |
| 84 | +// cdb-check:w_i128 : 50 [Type: core::num::wrapping::Wrapping<i128>] |
| 85 | +// cdb-check: [+0x000] __0 : 50 [Type: i128] |
79 | 86 |
|
80 | 87 | // cdb-command: dx w_isize
|
81 | 88 | // cdb-check:w_isize : 60 [Type: core::num::wrapping::Wrapping<isize>]
|
82 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<isize>] |
| 89 | +// cdb-check: [+0x000] __0 : 60 [Type: __int64] |
83 | 90 |
|
84 | 91 | // cdb-command: dx w_u8
|
85 | 92 | // cdb-check:w_u8 : 0x46 [Type: core::num::wrapping::Wrapping<u8>]
|
86 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<u8>] |
| 93 | +// cdb-check: [+0x000] __0 : 0x46 [Type: unsigned char] |
87 | 94 |
|
88 | 95 | // cdb-command: dx w_u16
|
89 | 96 | // cdb-check:w_u16 : 0x50 [Type: core::num::wrapping::Wrapping<u16>]
|
90 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<u16>] |
| 97 | +// cdb-check: [+0x000] __0 : 0x50 [Type: unsigned short] |
91 | 98 |
|
92 | 99 | // cdb-command: dx w_u32
|
93 | 100 | // cdb-check:w_u32 : 0x5a [Type: core::num::wrapping::Wrapping<u32>]
|
94 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<u32>] |
| 101 | +// cdb-check: [+0x000] __0 : 0x5a [Type: unsigned int] |
95 | 102 |
|
96 | 103 | // cdb-command: dx w_u64
|
97 | 104 | // cdb-check:w_u64 : 0x64 [Type: core::num::wrapping::Wrapping<u64>]
|
98 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<u64>] |
| 105 | +// cdb-check: [+0x000] __0 : 0x64 [Type: unsigned __int64] |
99 | 106 |
|
100 |
| -// 128-bit integers don't seem to work in CDB |
101 | 107 | // cdb-command: dx w_u128
|
102 |
| -// cdb-check:w_u128 [Type: core::num::wrapping::Wrapping<u128>] |
103 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<u128>] |
| 108 | +// cdb-check:w_u128 : 110 [Type: core::num::wrapping::Wrapping<u128>] |
| 109 | +// cdb-check: [+0x000] __0 : 110 [Type: u128] |
104 | 110 |
|
105 | 111 | // cdb-command: dx w_usize
|
106 | 112 | // cdb-check:w_usize : 0x78 [Type: core::num::wrapping::Wrapping<usize>]
|
107 |
| -// cdb-check: [<Raw View>] [Type: core::num::wrapping::Wrapping<usize>] |
| 113 | +// cdb-check: [+0x000] __0 : 0x78 [Type: unsigned __int64] |
108 | 114 |
|
109 | 115 | // cdb-command: dx a_bool_t
|
110 | 116 | // cdb-check:a_bool_t : true [Type: core::sync::atomic::AtomicBool]
|
111 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicBool] |
| 117 | +// cdb-check: [+0x000] v : 0x1 [Type: core::cell::UnsafeCell<u8>] |
112 | 118 |
|
113 | 119 | // cdb-command: dx a_bool_f
|
114 | 120 | // cdb-check:a_bool_f : false [Type: core::sync::atomic::AtomicBool]
|
115 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicBool] |
| 121 | +// cdb-check: [+0x000] v : 0x0 [Type: core::cell::UnsafeCell<u8>] |
116 | 122 |
|
117 | 123 | // cdb-command: dx a_i8
|
118 | 124 | // cdb-check:a_i8 : 2 [Type: core::sync::atomic::AtomicI8]
|
119 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicI8] |
| 125 | +// cdb-check: [+0x000] v : 2 [Type: core::cell::UnsafeCell<i8>] |
120 | 126 |
|
121 | 127 | // cdb-command: dx a_i16
|
122 | 128 | // cdb-check:a_i16 : 4 [Type: core::sync::atomic::AtomicI16]
|
123 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicI16] |
| 129 | +// cdb-check: [+0x000] v : 4 [Type: core::cell::UnsafeCell<i16>] |
124 | 130 |
|
125 | 131 | // cdb-command: dx a_i32
|
126 | 132 | // cdb-check:a_i32 : 8 [Type: core::sync::atomic::AtomicI32]
|
127 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicI32] |
| 133 | +// cdb-check: [+0x000] v : 8 [Type: core::cell::UnsafeCell<i32>] |
128 | 134 |
|
129 | 135 | // cdb-command: dx a_i64
|
130 | 136 | // cdb-check:a_i64 : 16 [Type: core::sync::atomic::AtomicI64]
|
131 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicI64] |
| 137 | +// cdb-check: [+0x000] v : 16 [Type: core::cell::UnsafeCell<i64>] |
132 | 138 |
|
133 | 139 | // cdb-command: dx a_isize
|
134 | 140 | // cdb-check:a_isize : 32 [Type: core::sync::atomic::AtomicIsize]
|
135 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicIsize] |
| 141 | +// cdb-check: [+0x000] v : 32 [Type: core::cell::UnsafeCell<isize>] |
136 | 142 |
|
137 | 143 | // cdb-command: dx a_u8
|
138 | 144 | // cdb-check:a_u8 : 0x40 [Type: core::sync::atomic::AtomicU8]
|
139 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicU8] |
| 145 | +// cdb-check: [+0x000] v : 0x40 [Type: core::cell::UnsafeCell<u8>] |
140 | 146 |
|
141 | 147 | // cdb-command: dx a_u16
|
142 | 148 | // cdb-check:a_u16 : 0x80 [Type: core::sync::atomic::AtomicU16]
|
143 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicU16] |
| 149 | +// cdb-check: [+0x000] v : 0x80 [Type: core::cell::UnsafeCell<u16>] |
144 | 150 |
|
145 | 151 | // cdb-command: dx a_u32
|
146 | 152 | // cdb-check:a_u32 : 0x100 [Type: core::sync::atomic::AtomicU32]
|
147 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicU32] |
| 153 | +// cdb-check: [+0x000] v : 0x100 [Type: core::cell::UnsafeCell<u32>] |
148 | 154 |
|
149 | 155 | // cdb-command: dx a_u64
|
150 | 156 | // cdb-check:a_u64 : 0x200 [Type: core::sync::atomic::AtomicU64]
|
151 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicU64] |
| 157 | +// cdb-check: [+0x000] v : 0x200 [Type: core::cell::UnsafeCell<u64>] |
152 | 158 |
|
153 | 159 | // cdb-command: dx a_usize
|
154 | 160 | // cdb-check:a_usize : 0x400 [Type: core::sync::atomic::AtomicUsize]
|
155 |
| -// cdb-check: [<Raw View>] [Type: core::sync::atomic::AtomicUsize] |
| 161 | +// cdb-check: [+0x000] v : 0x400 [Type: core::cell::UnsafeCell<usize>] |
156 | 162 |
|
157 | 163 |
|
158 | 164 | // === GDB TESTS ===================================================================================
|
|
0 commit comments