diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-02-01 23:15:36 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-02-01 23:15:36 +0000 |
commit | 61137ba64bf956ebb02af891bd7f8b1a8d1de414 (patch) | |
tree | 9b44b3bfab0e6e60a53d6a076b82ea6fcbb881d2 /gdb/testsuite/gdb.ada/sym_print_name | |
parent | b06ead72a91c1af2a7b7cae87391e4401c6d4409 (diff) | |
download | gdb-61137ba64bf956ebb02af891bd7f8b1a8d1de414.zip gdb-61137ba64bf956ebb02af891bd7f8b1a8d1de414.tar.gz gdb-61137ba64bf956ebb02af891bd7f8b1a8d1de414.tar.bz2 |
* gdb.ada/sym_print_name: New test program.
* gdb.ada/sym_print_name.exp: New testcase.
Diffstat (limited to 'gdb/testsuite/gdb.ada/sym_print_name')
-rw-r--r-- | gdb/testsuite/gdb.ada/sym_print_name/foo.adb | 22 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/sym_print_name/pck.adb | 21 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/sym_print_name/pck.ads | 26 |
3 files changed, 69 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/sym_print_name/foo.adb b/gdb/testsuite/gdb.ada/sym_print_name/foo.adb new file mode 100644 index 0000000..0333e35 --- /dev/null +++ b/gdb/testsuite/gdb.ada/sym_print_name/foo.adb @@ -0,0 +1,22 @@ +-- Copyright 2008 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 +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see <http://www.gnu.org/licenses/>. + +with Pck; use Pck; + +procedure Foo is +begin + Do_Nothing (First.I); -- STOP + Do_Nothing (Second.I); +end Foo; diff --git a/gdb/testsuite/gdb.ada/sym_print_name/pck.adb b/gdb/testsuite/gdb.ada/sym_print_name/pck.adb new file mode 100644 index 0000000..6dc301c --- /dev/null +++ b/gdb/testsuite/gdb.ada/sym_print_name/pck.adb @@ -0,0 +1,21 @@ +-- Copyright 2008 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 +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see <http://www.gnu.org/licenses/>. + +package body Pck is + procedure Do_Nothing (Val : in out Integer) is + begin + null; + end Do_Nothing; +end Pck; diff --git a/gdb/testsuite/gdb.ada/sym_print_name/pck.ads b/gdb/testsuite/gdb.ada/sym_print_name/pck.ads new file mode 100644 index 0000000..57d1cda --- /dev/null +++ b/gdb/testsuite/gdb.ada/sym_print_name/pck.ads @@ -0,0 +1,26 @@ +-- Copyright 2008 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 +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see <http://www.gnu.org/licenses/>. + +package Pck is + package First is + I : Integer := 48; + end First; + + package Second is + I : Integer := 74; + end Second; + + procedure Do_Nothing (Val : in out Integer); +end Pck; |