diff options
| author | Austin Hicks <camlorn@camlorn.net> | 2016-12-02 19:24:24 -0500 |
|---|---|---|
| committer | Austin Hicks <camlorn@camlorn.net> | 2016-12-14 12:28:26 -0500 |
| commit | 9966bbd1b11fcd2866cdbd21146f5e9a0d8ea66c (patch) | |
| tree | dd2e5d55dae54f7bfc9a8a07b605f7969ce49df9 /src/test/debuginfo/struct-in-enum.rs | |
| parent | a65cc1ea546bca6cccf4e479e4acd09a8a839ce0 (diff) | |
| download | rust-9966bbd1b11fcd2866cdbd21146f5e9a0d8ea66c.tar.gz rust-9966bbd1b11fcd2866cdbd21146f5e9a0d8ea66c.zip | |
Fix computation of enum names based off the discrfield in the case of the null pointer optimization. This functionality is needed by pretty printers for gdb and lldb.
Diffstat (limited to 'src/test/debuginfo/struct-in-enum.rs')
| -rw-r--r-- | src/test/debuginfo/struct-in-enum.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/debuginfo/struct-in-enum.rs b/src/test/debuginfo/struct-in-enum.rs index d0aceaa4f3f..ffd36ae14ad 100644 --- a/src/test/debuginfo/struct-in-enum.rs +++ b/src/test/debuginfo/struct-in-enum.rs @@ -19,11 +19,11 @@ // gdb-command:run // gdb-command:print case1 -// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, __0 = 0, __1 = {x = 2088533116, y = 2088533116, z = 31868}}, {RUST$ENUM$DISR = Case1, __0 = 0, __1 = 8970181431921507452, __2 = 31868}} +// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, __0 = 0, __1 = {x = 2088533116, y = 2088533116, z = 31868}}, {RUST$ENUM$DISR = Case1, [...]}} // gdbr-check:$1 = struct_in_enum::Regular::Case1(0, struct_in_enum::Struct {x: 2088533116, y: 2088533116, z: 31868}) // gdb-command:print case2 -// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, __0 = 0, __1 = {x = 286331153, y = 286331153, z = 4369}}, {RUST$ENUM$DISR = Case2, __0 = 0, __1 = 1229782938247303441, __2 = 4369}} +// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, __0 = 0, __1 = 1229782938247303441, __2 = 4369}} // gdbr-check:$2 = struct_in_enum::Regular::Case2(0, 1229782938247303441, 4369) // gdb-command:print univariant |
