[testsuite/Ada] Add testing of access to packed arrays.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 10 Jul 2013 00:35:01 +0000 (00:35 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 10 Jul 2013 00:35:01 +0000 (00:35 +0000)
commit51b864269362341b80f9953c82c90520de51a0d8
tree603cf07c552c66ccc2d06d34f9345e10212bf3fa
parenteca07816f8f4c9cb081123a8534a481b416d1add
[testsuite/Ada] Add testing of access to packed arrays.

This patch adds some tests that evidence a regression fixed by
the following patch from Pedro Alves:

    [PATCH] ada-lang.c:coerce_unspec_val_to_type: Preserve laziness
    http://www.sourceware.org/ml/gdb-patches/2013-07/msg00178.html

gdb/testsuite/ChangeLog:

        * gdb.ada/arrayptr/foo.adb: Add some code defining an access
        to a packed array.
        * gdb.ada/arrayptr.exp: Add a few tests using that new access
        to packed array.
gdb/testsuite/gdb.ada/arrayptr.exp
gdb/testsuite/gdb.ada/arrayptr/foo.adb