Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/discr28.ads @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
with Discr28_Pkg; package Discr28 is type Enum is (One, Two); type Rec (D : Enum := One) is record case D is when One => null; when Two => S : String (1 .. Discr28_Pkg.N); end case; end record; Default_Rec : constant Rec := (D => One); procedure Proc1; procedure Proc2; end Discr28;