]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/duration-type.rs
Rollup merge of #107807 - GuillaumeGomez:fix-small-debug-typo, r=notriddle
[rust.git] / tests / debuginfo / duration-type.rs
1 // only-cdb
2 // compile-flags:-g
3
4 // === CDB TESTS ==================================================================================
5
6 // cdb-command: g
7
8 // cdb-command: dx duration
9 // cdb-check:duration         : 5s 12ns [Type: core::time::Duration]
10 // cdb-check:    [<Raw View>]     [Type: core::time::Duration]
11 // cdb-check:    seconds          : 5 [Type: unsigned __int64]
12 // cdb-check:    nanoseconds      : 12 [Type: unsigned int]
13
14 use std::time::Duration;
15
16 fn main() {
17     let duration = Duration::new(5, 12);
18
19     zzz(); // #break
20 }
21
22 fn zzz() { }