gdb_test "print foo.three_ptr.all'length" \
" = 3"
+gdb_test "ptype foo.three_ptr.all" \
+ " = array \\(<>\\) of integer"
+
# foo.three_ptr
gdb_test "print foo.three_ptr(1)" \
gdb_test "print foo.three_ptr'length" \
" = 3"
+gdb_test "ptype foo.three_ptr" \
+ " = access array \\(<>\\) of integer"
+
# foo.three_ptr_tdef.all
gdb_test "print foo.three_ptr_tdef.all" \
gdb_test "print foo.three_ptr_tdef.all'length" \
" = 3"
+gdb_test "ptype foo.three_ptr_tdef.all" \
+ " = array \\(<>\\) of integer"
+
# foo.three_ptr_tdef
gdb_test "print foo.three_ptr_tdef(1)" \
gdb_test "print foo.three_ptr_tdef'length" \
" = 3"
+gdb_test "ptype foo.three_ptr_tdef" \
+ " = access array \\(<>\\) of integer"
+
# foo.five_ptr.all
gdb_test "print foo.five_ptr.all" \
gdb_test "print foo.five_ptr.all'length" \
" = 5"
+gdb_test "ptype foo.five_ptr.all" \
+ " = array \\(<>\\) of integer"
+
# foo.five_ptr
gdb_test "print foo.five_ptr(2)" \
gdb_test "print foo.five_ptr'length" \
" = 5"
+gdb_test "ptype foo.five_ptr" \
+ " = access array \\(<>\\) of integer"
+
# foo.five_ptr_tdef.all
gdb_test "print foo.five_ptr_tdef.all" \
gdb_test "print foo.five_ptr_tdef.all'length" \
" = 5"
+gdb_test "ptype foo.five_ptr_tdef.all" \
+ " = array \\(<>\\) of integer"
+
# foo.five_ptr_tdef
gdb_test "print foo.five_ptr_tdef(2)" \
gdb_test "print foo.five_ptr_tdef'length" \
" = 5"
+
+gdb_test "ptype foo.five_ptr_tdef" \
+ " = access array \\(<>\\) of integer"