aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2009-08-17 09:30:32 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-08-17 11:30:32 +0200
commit23532a924886d063e5e06479eb6bce63c2c8127b (patch)
tree78573a7b3da14b2c1f985d32c53d18270310a509 /gcc
parent89c273b45787a36d90bdf91c0eb0f182a7fb960e (diff)
downloadgcc-23532a924886d063e5e06479eb6bce63c2c8127b.zip
gcc-23532a924886d063e5e06479eb6bce63c2c8127b.tar.gz
gcc-23532a924886d063e5e06479eb6bce63c2c8127b.tar.bz2
New test.
From-SVN: r150825
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gnat.dg/itype.adb8
-rw-r--r--gcc/testsuite/gnat.dg/itype.ads5
3 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 853d3f0..d97ba8c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-17 Arnaud Charlet <charlet@adacore.com>
+
+ * gnat.dg/itype.ad[sb]: New test.
+
2009-08-16 Adam Nemet <anemet@caviumnetworks.com>
* gcc.target/mips/mips.exp: Add terminology section to comment
diff --git a/gcc/testsuite/gnat.dg/itype.adb b/gcc/testsuite/gnat.dg/itype.adb
new file mode 100644
index 0000000..848bda4
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/itype.adb
@@ -0,0 +1,8 @@
+package body itype is
+ function G return not null access constant T is
+ X : aliased T;
+
+ begin
+ return X'Unchecked_Access;
+ end G;
+end itype;
diff --git a/gcc/testsuite/gnat.dg/itype.ads b/gcc/testsuite/gnat.dg/itype.ads
new file mode 100644
index 0000000..3ffb7c6
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/itype.ads
@@ -0,0 +1,5 @@
+package itype is
+ generic
+ type T is private;
+ function G return not null access constant T;
+end itype;