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/simple-tuple.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/simple-tuple.rs')
| -rw-r--r-- | src/test/debuginfo/simple-tuple.rs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/test/debuginfo/simple-tuple.rs b/src/test/debuginfo/simple-tuple.rs index 9486ab2474e..29d739d7f18 100644 --- a/src/test/debuginfo/simple-tuple.rs +++ b/src/test/debuginfo/simple-tuple.rs @@ -12,6 +12,9 @@ // ignore-android: FIXME(#10381) // compile-flags:-g + +// === GDB TESTS =================================================================================== + // gdb-command:set print pretty off // gdb-command:rbreak zzz @@ -69,6 +72,28 @@ // gdb-command:print 'simple-tuple::PADDING_AT_END' // gdb-check:$21 = {116, 117} + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print/d noPadding8 +// lldb-check:[...]$0 = (-100, 100) +// lldb-command:print noPadding16 +// lldb-check:[...]$1 = (0, 1, 2) +// lldb-command:print noPadding32 +// lldb-check:[...]$2 = (3, 4.5, 5) +// lldb-command:print noPadding64 +// lldb-check:[...]$3 = (6, 7.5, 8) + +// lldb-command:print internalPadding1 +// lldb-check:[...]$4 = (9, 10) +// lldb-command:print internalPadding2 +// lldb-check:[...]$5 = (11, 12, 13, 14) + +// lldb-command:print paddingAtEnd +// lldb-check:[...]$6 = (15, 16) + #![allow(unused_variable)] #![allow(dead_code)] @@ -107,7 +132,7 @@ fn main() { PADDING_AT_END = (116, 117); } - zzz(); + zzz(); // #break } fn zzz() {()} |
