summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt17.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/opt17.ads')
-rw-r--r--gcc/testsuite/gnat.dg/opt17.ads7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/opt17.ads b/gcc/testsuite/gnat.dg/opt17.ads
new file mode 100644
index 000000000..601c2f201
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/opt17.ads
@@ -0,0 +1,7 @@
+package Opt17 is
+
+ subtype S is String (1 .. 5);
+
+ function Func return S;
+
+end Opt17;