summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/pack18.adb
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-04 13:28:27 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-04 13:28:27 +0000
commitfaf8a5f7f39235b059c7fe7994dc909b1ad856bd (patch)
tree5cd1d9847625ae6fa60e392483a1ca0f224b8bd3 /gcc/testsuite/gnat.dg/pack18.adb
parentc486bd8cad61831663994e24c0e8fe205369a810 (diff)
downloadgcc-faf8a5f7f39235b059c7fe7994dc909b1ad856bd.tar.gz
2012-04-04 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 186135 using svnmerge git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@186137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gnat.dg/pack18.adb')
-rw-r--r--gcc/testsuite/gnat.dg/pack18.adb12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/pack18.adb b/gcc/testsuite/gnat.dg/pack18.adb
new file mode 100644
index 00000000000..857a6f9787e
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/pack18.adb
@@ -0,0 +1,12 @@
+-- { dg-do run }
+
+with Pack18_Pkg; use Pack18_Pkg;
+
+procedure Pack18 is
+ use Pack18_Pkg.Attributes_Tables;
+ Table : Instance;
+begin
+ Init (Table);
+ Set_Last (Table, 1);
+ Table.Table (Last (Table)).N := 0;
+end;