about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2022-03-03 12:10:02 +0100
committerMichael Woerister <michaelwoerister@posteo>2022-03-14 16:52:47 +0100
commit3ad299aa670face2085d2abec6e8481fa582068a (patch)
tree0e4cceb87c75f145bbc77fda35ddd2713c611ee5 /src/test/debuginfo
parent07ebc13d87796622bb6e4ac46a7e6a054bc4c680 (diff)
downloadrust-3ad299aa670face2085d2abec6e8481fa582068a.tar.gz
rust-3ad299aa670face2085d2abec6e8481fa582068a.zip
debuginfo: change cpp-like naming for generator environments so that NatVis works for them
Diffstat (limited to 'src/test/debuginfo')
-rw-r--r--src/test/debuginfo/generator-objects.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/test/debuginfo/generator-objects.rs b/src/test/debuginfo/generator-objects.rs
index aee19736e7e..a972943d58e 100644
--- a/src/test/debuginfo/generator-objects.rs
+++ b/src/test/debuginfo/generator-objects.rs
@@ -37,6 +37,37 @@
 // lldb-command:print b
 // lldbg-check:(generator_objects::main::{generator_env#0}) $3 =
 
+// === CDB TESTS ===================================================================================
+
+// cdb-command: g
+// 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-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-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-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 *]
+
 #![feature(omit_gdb_pretty_printer_section, generators, generator_trait)]
 #![omit_gdb_pretty_printer_section]