summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/import1.adb
blob: 4e4056098b58919c39a474af125dc116859ca82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- { dg-do compile }
-- { dg-options "-g" }

package body Import1 is

   procedure Create (Bounds : Arr) is
      type Bound_Array is array (Bounds'Range) of Integer;

      procedure Proc (Ptr : access Bound_Array);
      pragma Import (C, Proc);

      Temp : aliased Bound_Array;
   begin
      Proc (Temp'Access);
   end;

end Import1;