diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/discr1.ads')
-rw-r--r-- | gcc/testsuite/gnat.dg/discr1.ads | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/discr1.ads b/gcc/testsuite/gnat.dg/discr1.ads new file mode 100644 index 000000000..e2adab441 --- /dev/null +++ b/gcc/testsuite/gnat.dg/discr1.ads @@ -0,0 +1,25 @@ +package discr1 is + + type R is (One, Two); + + type C_Type (Kind : R) is + record + case Kind is + when One => + Name : Integer; + when Two => + Designator : String (1 .. 40); + end case; + end record; + + for C_Type use record + Name at 0 range 0.. 31; + Designator at 0 range 0..319; + Kind at 40 range 0.. 7; + end record; + + for C_Type'Size use 44 * 8; + + procedure Assign (Id : String); + +end discr1; |