diff options
Diffstat (limited to 'src/test/debuginfo/struct-in-enum.rs')
| -rw-r--r-- | src/test/debuginfo/struct-in-enum.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/test/debuginfo/struct-in-enum.rs b/src/test/debuginfo/struct-in-enum.rs index 0cba56ad320..d01119bce05 100644 --- a/src/test/debuginfo/struct-in-enum.rs +++ b/src/test/debuginfo/struct-in-enum.rs @@ -12,6 +12,9 @@ // ignore-android: FIXME(#10381) // compile-flags:-g + +// === GDB TESTS =================================================================================== + // gdb-command:set print union on // gdb-command:rbreak zzz // gdb-command:run @@ -26,6 +29,19 @@ // gdb-command:print univariant // gdb-check:$3 = {{{x = 123, y = 456, z = 789}}} + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print case1 +// lldb-check:[...]$0 = Case1(0, Struct { x: 2088533116, y: 2088533116, z: 31868 }) +// lldb-command:print case2 +// lldb-check:[...]$1 = Case2(0, 1229782938247303441, 4369) + +// lldb-command:print univariant +// lldb-check:[...]$2 = TheOnlyCase(Struct { x: 123, y: 456, z: 789 }) + #![allow(unused_variable)] struct Struct { @@ -66,7 +82,7 @@ fn main() { let univariant = TheOnlyCase(Struct { x: 123, y: 456, z: 789 }); - zzz(); + zzz(); // #break } fn zzz() {()} |
