rust/25535 Apply embedded offset to enum variant calculation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.rust / simple.exp
index aa64e6b08f1c79f0e1a46e919f1b04d9a60f80c1..b4fcf274261d6dd4b09b85a498b3eecfbd711550 100644 (file)
@@ -357,6 +357,8 @@ gdb_test_sequence "ptype/o SimpleLayout" "" {
 
 gdb_test "print u2" " = simple::Union2 {name: \\\[1\\\]}"
 
+gdb_test "print nonzero_offset" " = simple::EnumWithNonzeroOffset {a: core::option::Option<u8>::Some\\(1\\), b: core::option::Option<u8>::None}"
+
 # PR rust/23626 - this used to crash.  Note that the results are
 # fairly lax because most existing versions of Rust (those before the
 # DW_TAG_variant patches) do not emit what gdb wants here; and there
This page took 0.030211 seconds and 4 git commands to generate.