+2008-01-04 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.ada/packed_array.exp: Add testing of references to
+ a packed array.
+
2008-01-04 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
".* = \\(4 => true, false, true, false, true\\)" \
"print var"
+# Try printing the value and the type definition of a reference
+# to variable "Var".
+
+gdb_test "ptype &var" \
+ "type = access array \\(4 \\.\\. 8\\) of boolean <packed: 1-bit elements>" \
+ "ptype &var"
+
+gdb_test "print &var" \
+ "\\(access array \\(\\.\\.\\.\\) of boolean\\) \\(4 => true, false, true, false, true\\)" \
+ "print &var"