aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/complete
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-02-05 22:20:51 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-02-05 22:20:51 +0000
commit439048e8fe50ff5958be88f571d850a3fbfcb17e (patch)
tree9dce22d9c39344ef6e769e19962c3b0e382c6e70 /gdb/testsuite/gdb.ada/complete
parent41d27058f2a51665c78726b4a13510fcfc7db007 (diff)
downloadgdb-439048e8fe50ff5958be88f571d850a3fbfcb17e.zip
gdb-439048e8fe50ff5958be88f571d850a3fbfcb17e.tar.gz
gdb-439048e8fe50ff5958be88f571d850a3fbfcb17e.tar.bz2
* gdb.ada/complete/pck.ads, gdb.ada/complete/pck.adb,
gdb.ada/complete/foo.adb: New files. * gdb.ada/complete.exp: New testcase.
Diffstat (limited to 'gdb/testsuite/gdb.ada/complete')
-rw-r--r--gdb/testsuite/gdb.ada/complete/foo.adb10
-rw-r--r--gdb/testsuite/gdb.ada/complete/pck.adb9
-rw-r--r--gdb/testsuite/gdb.ada/complete/pck.ads19
3 files changed, 38 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/complete/foo.adb b/gdb/testsuite/gdb.ada/complete/foo.adb
new file mode 100644
index 0000000..3cf60b6
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/complete/foo.adb
@@ -0,0 +1,10 @@
+with Pck; use Pck;
+
+procedure Foo is
+ Some_Local_Variable : Integer := 1;
+ External_Identical_Two : Integer := 74;
+begin
+ My_Global_Variable := Some_Local_Variable + 1; -- START
+ Proc (External_Identical_Two);
+end Foo;
+
diff --git a/gdb/testsuite/gdb.ada/complete/pck.adb b/gdb/testsuite/gdb.ada/complete/pck.adb
new file mode 100644
index 0000000..4d7d797
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/complete/pck.adb
@@ -0,0 +1,9 @@
+package body Pck is
+
+ procedure Proc (I : Integer) is
+ Not_In_Scope : Integer := 77;
+ begin
+ Inner.Inside_Variable := Not_In_Scope + I;
+ end Proc;
+
+end Pck;
diff --git a/gdb/testsuite/gdb.ada/complete/pck.ads b/gdb/testsuite/gdb.ada/complete/pck.ads
new file mode 100644
index 0000000..d897cbc
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/complete/pck.ads
@@ -0,0 +1,19 @@
+package Pck is
+
+ My_Global_Variable : Integer := 1;
+
+ Exported_Capitalized : Integer := 2;
+ pragma Export (C, Exported_Capitalized, "Exported_Capitalized");
+
+ Local_Identical_One : Integer := 4;
+ Local_Identical_Two : Integer := 8;
+
+ External_Identical_One : Integer := 19;
+
+ package Inner is
+ Inside_Variable : Integer := 3;
+ end Inner;
+
+ procedure Proc (I : Integer);
+
+end Pck;