|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
11 | 11 | // ignore-tidy-linelength
|
12 |
| -// min-lldb-version: 310 |
13 |
| -// ignore-gdb-version: 7.11.90 - 7.12.9 |
| 12 | + |
| 13 | +// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can |
| 14 | +// read it. |
| 15 | +// min-system-llvm-version: 7.0 |
| 16 | +// min-gdb-version: 8.2 |
| 17 | +// rust-lldb |
14 | 18 |
|
15 | 19 | // compile-flags:-g
|
16 | 20 |
|
|
20 | 24 | // gdb-command:run
|
21 | 25 |
|
22 | 26 | // gdb-command:print case1
|
23 |
| -// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, __0 = 0, __1 = 31868, __2 = 31868, __3 = 31868, __4 = 31868}, {RUST$ENUM$DISR = Case1, [...]}, {RUST$ENUM$DISR = Case1, [...]}} |
24 |
| -// gdbr-check:$1 = generic_tuple_style_enum::Regular::Case1(0, 31868, 31868, 31868, 31868) |
| 27 | +// gdbr-check:$1 = generic_tuple_style_enum::Regular<u16, u32, u64>::Case1(0, 31868, 31868, 31868, 31868) |
25 | 28 |
|
26 | 29 | // gdb-command:print case2
|
27 |
| -// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, __0 = 0, __1 = 286331153, __2 = 286331153}, {RUST$ENUM$DISR = Case2, [...]}} |
28 |
| -// gdbr-check:$2 = generic_tuple_style_enum::Regular::Case2(0, 286331153, 286331153) |
| 30 | +// gdbr-check:$2 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case2(0, 286331153, 286331153) |
29 | 31 |
|
30 | 32 | // gdb-command:print case3
|
31 |
| -// gdbg-check:$3 = {{RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, __0 = 0, __1 = 6438275382588823897}} |
32 |
| -// gdbr-check:$3 = generic_tuple_style_enum::Regular::Case3(0, 6438275382588823897) |
| 33 | +// gdbr-check:$3 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case3(0, 6438275382588823897) |
33 | 34 |
|
34 | 35 | // gdb-command:print univariant
|
35 |
| -// gdbg-check:$4 = {{__0 = -1}} |
36 | 36 | // gdbr-check:$4 = generic_tuple_style_enum::Univariant<i64>::TheOnlyCase(-1)
|
37 | 37 |
|
38 | 38 |
|
|
41 | 41 | // lldb-command:run
|
42 | 42 |
|
43 | 43 | // lldb-command:print case1
|
44 |
| -// lldbg-check:[...]$0 = Case1(0, 31868, 31868, 31868, 31868) |
45 | 44 | // lldbr-check:(generic_tuple_style_enum::Regular<u16, u32, u64>::Case1) case1 = { = 0 = 31868 = 31868 = 31868 = 31868 }
|
46 | 45 |
|
47 | 46 | // lldb-command:print case2
|
48 |
| -// lldbg-check:[...]$1 = Case2(0, 286331153, 286331153) |
49 |
| -// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case2) case2 = Regular<i16, i32, i64>::Case2 { generic_tuple_style_enum::Regular<i16, i32, i64>::Case1: 0, generic_tuple_style_enum::Regular<i16, i32, i64>::Case2: 286331153, generic_tuple_style_enum::Regular<i16, i32, i64>::Case3: 286331153 } |
| 47 | +// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case2) case2 = Regular<i16, i32, i64>::Case2 { Case1: 0, Case2: 286331153, Case3: 286331153 } |
50 | 48 |
|
51 | 49 | // lldb-command:print case3
|
52 |
| -// lldbg-check:[...]$2 = Case3(0, 6438275382588823897) |
53 |
| -// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case3) case3 = Regular<i16, i32, i64>::Case3 { generic_tuple_style_enum::Regular<i16, i32, i64>::Case1: 0, generic_tuple_style_enum::Regular<i16, i32, i64>::Case2: 6438275382588823897 } |
| 50 | +// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case3) case3 = Regular<i16, i32, i64>::Case3 { Case1: 0, Case2: 6438275382588823897 } |
54 | 51 |
|
55 | 52 | // lldb-command:print univariant
|
56 |
| -// lldbg-check:[...]$3 = TheOnlyCase(-1) |
57 |
| -// lldbr-check:(generic_tuple_style_enum::Univariant<i64>) univariant = { generic_tuple_style_enum::TheOnlyCase = { = -1 } } |
| 53 | +// lldbr-check:(generic_tuple_style_enum::Univariant<i64>) univariant = { TheOnlyCase = { = -1 } } |
58 | 54 |
|
59 | 55 | #![feature(omit_gdb_pretty_printer_section)]
|
60 | 56 | #![omit_gdb_pretty_printer_section]
|
|
0 commit comments