about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2022-03-15 11:45:51 +0100
committerMichael Woerister <michaelwoerister@posteo>2022-03-15 11:45:51 +0100
commitaa2408aa84cb3f758fbf572b1000ceea27fddb7f (patch)
tree3ccf44ff69d9ea38c6118d6f1d9aae6887be86e3 /src/test/debuginfo
parent584855e03d5b42d34cc259ab4ef3d01a637ad1c6 (diff)
downloadrust-aa2408aa84cb3f758fbf572b1000ceea27fddb7f.tar.gz
rust-aa2408aa84cb3f758fbf572b1000ceea27fddb7f.zip
debuginfo: Refactor debuginfo generation for types -- Make generator-objects test case architecture independent.
Diffstat (limited to 'src/test/debuginfo')
-rw-r--r--src/test/debuginfo/generator-objects.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/test/debuginfo/generator-objects.rs b/src/test/debuginfo/generator-objects.rs
index a972943d58e..d6d7e5b44aa 100644
--- a/src/test/debuginfo/generator-objects.rs
+++ b/src/test/debuginfo/generator-objects.rs
@@ -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]
@@ -97,6 +97,7 @@ fn main() {
     _zzz(); // #break
 }
 
+#[inline(never)]
 fn _zzz() {
     ()
 }