Skip to content

Commit

Permalink
debuginfo: Refactor debuginfo generation for types -- Make generator-…
Browse files Browse the repository at this point in the history
…objects test case architecture independent.
  • Loading branch information
michaelwoerister committed Mar 15, 2022
1 parent 584855e commit aa2408a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/test/debuginfo/generator-objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,30 @@
// cdb-command: dx b
// cdb-check: b : Unresumed [Type: enum$<generator_objects::main::generator_env$0>]
// cdb-check: [variant] : Unresumed
// cdb-check: [+0x000] _ref__a : 0x[...] : 5 [Type: int *]
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]

// cdb-command: g
// cdb-command: dx b
// cdb-check: b : Suspend0 [Type: enum$<generator_objects::main::generator_env$0>]
// cdb-check: [variant] : Suspend0
// cdb-check: [+0x008] c : 6 [Type: int]
// cdb-check: [+0x00c] d : 7 [Type: int]
// cdb-check: [+0x000] _ref__a : 0x[...] : 5 [Type: int *]
// cdb-check: [+0x[...]] c : 6 [Type: int]
// cdb-check: [+0x[...]] d : 7 [Type: int]
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]

// cdb-command: g
// cdb-command: dx b
// cdb-check: b : Suspend1 [Type: enum$<generator_objects::main::generator_env$0>]
// cdb-check: [variant] : Suspend1
// cdb-check: [+0x008] c : 7 [Type: int]
// cdb-check: [+0x00c] d : 8 [Type: int]
// cdb-check: [+0x000] _ref__a : 0x[...] : 6 [Type: int *]
// cdb-check: [+0x[...]] c : 7 [Type: int]
// cdb-check: [+0x[...]] d : 8 [Type: int]
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]

// cdb-command: g
// cdb-command: dx b
// cdb-check: b : Returned [Type: enum$<generator_objects::main::generator_env$0>]
// cdb-check: [<Raw View>] [Type: enum$<generator_objects::main::generator_env$0>]
// cdb-check: [variant] : Returned
// cdb-check: [+0x000] _ref__a : 0x[...] : 6 [Type: int *]
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]

#![feature(omit_gdb_pretty_printer_section, generators, generator_trait)]
#![omit_gdb_pretty_printer_section]
Expand Down Expand Up @@ -97,6 +97,7 @@ fn main() {
_zzz(); // #break
}

#[inline(never)]
fn _zzz() {
()
}

0 comments on commit aa2408a

Please sign in to comment.