1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-- { dg-do run } -- { dg-options "-O2" } with Opt12_Pkg; use Opt12_Pkg; procedure Opt12 is Static_Target : Static_Integer_Subtype; begin Static_Target := Static_Integer_Subtype(Fix_Half); if not Equal(Static_Target, 1) then raise Program_Error; end if; end Opt12;