Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gnat.dg / debug3.adb
blob6ed6b1a3d5a9d4ffbce0c3e95c2b7bafe7f5a6d6
1 -- { dg-do compile }
2 -- { dg-options "-g" }
4 with Ada.Unchecked_Conversion;
5 with System;
7 package body Debug3 is
9 type Rec is record
10 I : Integer;
11 end record;
12 for Rec'Alignment use 1;
14 type Ptr is access Rec;
16 function To_Ptr is new Ada.Unchecked_Conversion(System.Address, Ptr);
18 procedure Proc is
20 function Get (S1 : String) return Ptr is
21 begin
22 return To_Ptr (S1'Address);
23 end;
25 M : Ptr;
27 begin
28 M := Get ("");
29 end;
31 end Debug3;