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