diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-15 10:53:49 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-15 10:53:49 +0000 |
commit | b51f4775c054afd8c3901eb6caad4b3fc9832831 (patch) | |
tree | ec3343a10a451945ecbd128e6e55048e5134e69a /gcc/testsuite/gnat.dg/discr8.ads | |
parent | 43a3cf9061a713f3b090a6a49ec246e2a0c2796a (diff) | |
download | gcc-b51f4775c054afd8c3901eb6caad4b3fc9832831.tar.gz |
* trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
of records and unions.
(gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gnat.dg/discr8.ads')
-rw-r--r-- | gcc/testsuite/gnat.dg/discr8.ads | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/discr8.ads b/gcc/testsuite/gnat.dg/discr8.ads new file mode 100644 index 00000000000..80dd2f652ce --- /dev/null +++ b/gcc/testsuite/gnat.dg/discr8.ads @@ -0,0 +1,20 @@ +with Discr8_Pkg1; use Discr8_Pkg1; + +package Discr8 is + + type Tag_T is (Tag_One, Tag_Two); + + type Local_T (Tag : Tag_T := Tag_One) is + record + case Tag is + when Tag_One => + A : T; + B : Integer; + when Tag_Two => + null; + end case; + end record; + + procedure Make (C : out Local_T); + +end Discr8; |