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

Unified Diff: gdb/testsuite/gdb.ada/aliased_array/pck.adb

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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/aliased_array/foo.adb ('k') | gdb/testsuite/gdb.ada/aliased_array/pck.ads » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.ada/aliased_array/pck.adb
diff --git a/gdb/testsuite/gdb.ada/rec_return/pck.adb b/gdb/testsuite/gdb.ada/aliased_array/pck.adb
similarity index 74%
copy from gdb/testsuite/gdb.ada/rec_return/pck.adb
copy to gdb/testsuite/gdb.ada/aliased_array/pck.adb
index ee0261f0e0d79e59569a84c4a7bf07a82f6ce12c..29de7435d0a4eee270d1668bc2182c5bf0837054 100644
--- a/gdb/testsuite/gdb.ada/rec_return/pck.adb
+++ b/gdb/testsuite/gdb.ada/aliased_array/pck.adb
@@ -1,4 +1,4 @@
--- Copyright 2010-2012 Free Software Foundation, Inc.
+-- Copyright 2012 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
@@ -14,14 +14,17 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
- function Bar return Rec is
+ function New_Bounded (Low, High : Integer) return Bounded is
+ Result : Bounded (Low .. High);
begin
- return (X => 42, S => "ABCDEFGH");
- end Bar;
+ for J in Low .. High loop
+ Result (J) := J;
+ end loop;
+ return Result;
+ end New_Bounded;
procedure Do_Nothing (A : System.Address) is
begin
null;
end Do_Nothing;
end Pck;
-
« no previous file with comments | « gdb/testsuite/gdb.ada/aliased_array/foo.adb ('k') | gdb/testsuite/gdb.ada/aliased_array/pck.ads » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698