Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gnat.dg / opt58.adb
blobac39cc06056e029bc745411c6a7f97dfc3c192f7
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 with Unchecked_Conversion;
5 with System; use System;
6 with Opt58_Pkg; use Opt58_Pkg;
8 procedure Opt58 is
10 function Convert is new Unchecked_Conversion (Integer, Rec);
12 Dword : Integer := 0;
13 I : Small_Int := F1 (Convert (Dword));
15 begin
16 if F2 (Null_Address, I = 0) then
17 null;
18 end if;
19 end Opt58;