|
58 | 58 | // gdb-command: print none
|
59 | 59 | // gdb-check:$12 = None
|
60 | 60 |
|
| 61 | +// gdb-command: print some_fat |
| 62 | +// gdb-check:$13 = Some = {"abc"} |
| 63 | + |
| 64 | +// gdb-command: print none_fat |
| 65 | +// gdb-check:$14 = None |
| 66 | + |
61 | 67 | // gdb-command: print nested_variant1
|
62 |
| -// gdb-check:$13 = NestedVariant1 = {NestedStruct = {regular_struct = RegularStruct = {the_first_field = 111, the_second_field = 112.5, the_third_field = true, the_fourth_field = "NestedStructString1"}, tuple_struct = TupleStruct = {113.5, 114}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar2, mixed_enum = MixedEnumTupleVar = {115, 116, false}}} |
| 68 | +// gdb-check:$15 = NestedVariant1 = {NestedStruct = {regular_struct = RegularStruct = {the_first_field = 111, the_second_field = 112.5, the_third_field = true, the_fourth_field = "NestedStructString1"}, tuple_struct = TupleStruct = {113.5, 114}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar2, mixed_enum = MixedEnumTupleVar = {115, 116, false}}} |
63 | 69 |
|
64 | 70 | // gdb-command: print nested_variant2
|
65 |
| -// gdb-check:$14 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}} |
| 71 | +// gdb-check:$16 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}} |
66 | 72 |
|
67 | 73 | use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3};
|
68 | 74 | use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar};
|
@@ -129,6 +135,8 @@ fn main() {
|
129 | 135 |
|
130 | 136 | let some = Some(110u);
|
131 | 137 | let none: Option<int> = None;
|
| 138 | + let some_fat = Some("abc"); |
| 139 | + let none_fat: Option<&'static str> = None; |
132 | 140 |
|
133 | 141 | let nested_variant1 = NestedVariant1(
|
134 | 142 | NestedStruct {
|
|
0 commit comments