aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/addr1.adb
blob: 5f5ff53563361cccb533efcc5153198c3c85ad55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--  { dg-do compile }

with System;
package body addr1 is
   task type T is
      entry Send (Location : System.Address);
   end;
   task body T is
   begin
      accept Send (Location : System.Address) do
        declare
           Buffer : String (1 .. 100);
           for Buffer'Address use Location;  --  Test
        begin
           null;
        end;
     end Send;
   end;
end;