PR other/53317
[official-gcc.git] / gcc / testsuite / gnat.dg / opt12.adb
blobe8b5c4787c624b3dcb5b05ad2fc5ab435f902161
1 -- { dg-do run }
2 -- { dg-options "-O2" }
4 with Opt12_Pkg; use Opt12_Pkg;
6 procedure Opt12 is
8 Static_Target : Static_Integer_Subtype;
10 begin
12 Static_Target := Static_Integer_Subtype(Fix_Half);
14 if not Equal(Static_Target, 1) then
15 raise Program_Error;
16 end if;
18 end Opt12;