Avoid crash on single-field union in Rust
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.rust / simple.exp
index 7211bd29be2548ed31e2822885129cdd5ac8b04e..dcbfb90920fbe898e47243c94f0133dae3144e57 100644 (file)
@@ -309,6 +309,8 @@ gdb_test_sequence "ptype/o SimpleLayout" "" {
     "                         }"
 }
 
+gdb_test "print u2" " = simple::Union2 {name: \\\[1\\\]}"
+
 # 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.023807 seconds and 4 git commands to generate.