Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/discr39.adb @ 140:4e440907fcbf
copy CbC goto flang in cfgexpand
remove some CbC unnecessary code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Nov 2018 00:24:45 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do run } with System.Storage_Elements; use System.Storage_Elements; procedure Discr39 is type Rec (Has_Src : Boolean) is record case Has_Src is when True => Src : aliased Integer; when False => null; end case; end record; pragma Pack(Rec); for Rec'Alignment use Integer'Alignment; R : Rec (Has_Src => True); begin if R.Src'Address mod Integer'Alignment /= 0 then raise Program_Error; end if; end;