summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt12.adb
blob: e8b5c4787c624b3dcb5b05ad2fc5ab435f902161 (plain)
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;