diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2014-07-09 14:46:09 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2014-07-16 09:46:31 +0200 |
| commit | c7f45a9458967f9acec23c40941c285b58790c0b (patch) | |
| tree | f777a945d0e650c308fa38f63478f6ebcad62d8a /src/test/debuginfo/struct-style-enum.rs | |
| parent | b56ef794a0690d29757d3934d3611018bb4f7b66 (diff) | |
| download | rust-c7f45a9458967f9acec23c40941c285b58790c0b.tar.gz rust-c7f45a9458967f9acec23c40941c285b58790c0b.zip | |
debuginfo: Add LLDB autotests to debuginfo test suite.
This commit adds LLDB autotests to the test suite but does not activate them by default yet.
Diffstat (limited to 'src/test/debuginfo/struct-style-enum.rs')
| -rw-r--r-- | src/test/debuginfo/struct-style-enum.rs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/test/debuginfo/struct-style-enum.rs b/src/test/debuginfo/struct-style-enum.rs index 70d4d709d23..c3a5abf2d38 100644 --- a/src/test/debuginfo/struct-style-enum.rs +++ b/src/test/debuginfo/struct-style-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 @@ -29,6 +32,23 @@ // gdb-command:print univariant // gdb-check:$4 = {{a = -1}} + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print case1 +// lldb-check:[...]$0 = Case1 { a: 0, b: 31868, c: 31868, d: 31868, e: 31868 } + +// lldb-command:print case2 +// lldb-check:[...]$1 = Case2 { a: 0, b: 286331153, c: 286331153 } + +// lldb-command:print case3 +// lldb-check:[...]$2 = Case3 { a: 0, b: 6438275382588823897 } + +// lldb-command:print univariant +// lldb-check:[...]$3 = TheOnlyCase { a: -1 } + #![allow(unused_variable)] #![feature(struct_variant)] @@ -71,7 +91,7 @@ fn main() { let univariant = TheOnlyCase { a: -1 }; - zzz(); + zzz(); // #break } fn zzz() {()} |
