" = \\(1, 2, 3\\)"
gdb_test "ptype foo.three" \
- "type = array \\(1 .. 3\\) of integer"
+ "type = array \\(<>\\) of integer"
gdb_test "print foo.three(1)" \
" = 1"
# foo.three_tdef
-gdb_test "print foo.three_tdef" \
+gdb_test "print foo.three_tdef.all" \
" = \\(1, 2, 3\\)"
gdb_test "ptype foo.three_tdef" \
- "type = array \\(1 .. 3\\) of integer"
+ "type = access array \\(<>\\) of integer"
gdb_test "print foo.three_tdef(1)" \
" = 1"
" = \\(2 => 5, 8, 13, 21, 34\\)"
gdb_test "ptype foo.five" \
- "type = array \\(2 .. 6\\) of integer"
+ "type = array \\(<>\\) of integer"
gdb_test "ptype foo.array_type" \
"type = array \\(<>\\) of integer"
# foo.five_tdef
-gdb_test "print foo.five_tdef" \
+gdb_test "print foo.five_tdef.all" \
" = \\(2 => 5, 8, 13, 21, 34\\)"
gdb_test "ptype foo.five_tdef" \
- "type = array \\(2 .. 6\\) of integer"
+ "type = access array \\(<>\\) of integer"
gdb_test "print foo.five_tdef(2)" \
" = 5"
gdb_test "print foo.five_tdef'length" \
" = 5"
-
-gdb_test_no_output "set lang c"
-
-# foo__three
-
-gdb_test "print foo__three" \
- " = \\{1, 2, 3\\}"
-
-gdb_test "ptype foo__three" \
- "type = integer \\\[3\\\]"
-
-# foo__three_tdef
-
-gdb_test "print foo__three_tdef" \
- " = \\{1, 2, 3\\}"
-
-gdb_test "ptype foo__three_tdef" \
- "type = integer \\\[3\\\]"
-
-# foo__five
-
-gdb_test "print foo__five" \
- " = \\{5, 8, 13, 21, 34\\}"
-
-gdb_test "ptype foo__five" \
- "type = integer \\\[5\\\]"
-
-# foo__five_tdef
-
-gdb_test "print foo__five_tdef" \
- " = \\{5, 8, 13, 21, 34\\}"
-
-gdb_test "ptype foo__five_tdef" \
- "type = integer \\\[5\\\]"
-
-gdb_test "ptype foo__array_type" \
- "type = integer \\\[variable length\\\]"