aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads')
-rw-r--r--gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads b/gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads
new file mode 100644
index 000000000..52ded342d
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gnat.dg/specs/pack6_pkg.ads
@@ -0,0 +1,17 @@
+generic
+
+ Size : Positive;
+
+package Pack6_Pkg is
+
+ type Object is private;
+
+private
+
+ type Bit is range 0 .. 1;
+ for Bit'Size use 1;
+
+ type Object is array (1 .. Size) of Bit;
+ pragma Pack (Object);
+
+end Pack6_Pkg;