aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb')
-rw-r--r--gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb b/gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb
new file mode 100644
index 000000000..cc6fcab8f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gnat.dg/prot2.adb
@@ -0,0 +1,23 @@
+-- { dg-do compile }
+
+with Prot2_Pkg1;
+with Prot2_Pkg2;
+
+package body Prot2 is
+
+ type A is array (1 .. Prot2_Pkg1.Num) of Integer;
+
+ type E is (One, Two);
+
+ type Rec (D : E := One) is record
+ case D is
+ when One => L : A;
+ when Two => null;
+ end case;
+ end record;
+
+ package My_Pkg2 is new Prot2_Pkg2 (Rec);
+
+ procedure Dummy is begin null; end;
+
+end Prot2;