Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: gdb/testsuite/gdb.ada/arrayptr/foo.adb

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.ada/arrayptr.exp ('k') | gdb/testsuite/gdb.ada/arrayptr/pck.adb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.ada/arrayptr/foo.adb
diff --git a/gdb/testsuite/gdb.ada/arrayptr/foo.adb b/gdb/testsuite/gdb.ada/arrayptr/foo.adb
index 2ab96940fc0f5fcad5672f6e5dd7be3108fd6f05..e414db1e0770433e2aefa0714a08206aa42982e8 100644
--- a/gdb/testsuite/gdb.ada/arrayptr/foo.adb
+++ b/gdb/testsuite/gdb.ada/arrayptr/foo.adb
@@ -1,4 +1,4 @@
--- Copyright 2008-2012 Free Software Foundation, Inc.
+-- Copyright 2008-2013 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -26,8 +26,19 @@ procedure Foo is
type Little_Array_Ptr is access all Little_Array;
Arr_Ptr: Little_Array_Ptr :=
new Little_Array'(21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
+
+ -- Same as above, but with a packed array.
+ type Small is range -64 .. 63;
+ for Small'Size use 7;
+ type Packed_Array is array (1..10) of Small;
+ pragma Pack (Packed_Array);
+
+ type Packed_Array_Ptr is access Packed_Array;
+ PA_Ptr : Packed_Array_Ptr
+ := new Packed_Array'(10, 20, 30, 40, 50, 60, 62, 63, -23, 42);
begin
Do_Nothing (String_P'Address); -- STOP
Do_Nothing (Null_String'Address);
Do_Nothing (Arr_Ptr'Address);
+ Do_Nothing (PA_Ptr'Address);
end Foo;
« no previous file with comments | « gdb/testsuite/gdb.ada/arrayptr.exp ('k') | gdb/testsuite/gdb.ada/arrayptr/pck.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698