diff options
Diffstat (limited to 'gdb/testsuite/gdb.ada/array_of_variant.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/array_of_variant.exp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/array_of_variant.exp b/gdb/testsuite/gdb.ada/array_of_variant.exp index 6372e2cf354..f8f4d9c130b 100644 --- a/gdb/testsuite/gdb.ada/array_of_variant.exp +++ b/gdb/testsuite/gdb.ada/array_of_variant.exp @@ -97,4 +97,15 @@ foreach_with_prefix scenario {all minimal} { [string_to_regexp "$v2"] \ "python print second array element" } + + set av1 "(initial => 0, rest => (tag => unused, cval => 88 'X'))" + set av2 "(initial => 0, rest => (tag => object, ival => 88))" + set full "($av1, $av2)" + + gdb_test "print another_array(1)" " = [string_to_regexp $av1]" \ + "print first element of another_array" + gdb_test "print another_array(2)" " = [string_to_regexp $av2]" \ + "print second element of another_array" + gdb_test "print another_array" " = [string_to_regexp $full]" \ + "print another_array" } |