aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/addr3.adb
blob: 837035ab38d20ef454c3765085c8d4a38eade7ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--  { dg-do compile }

with text_io;
with System;
procedure addr3 is
  
  Type T_SAME_TYPE is new System.Address;
  
  Type T_OTHER_TYPE is new System.Address;
  
  I : constant integer := 0;                                                   
                                                                                  procedure dum ( i : INTEGER ) is
  begin
    text_io.put_line ("Integer op");
    null;
  end;
  
  procedure dum ( i : system.ADDRESS ) is
  begin
    null;
  end;
  
  procedure dum ( i : T_SAME_TYPE ) is
  begin
    null;
  end;
  
  procedure dum ( i : T_OTHER_TYPE ) is
  begin
    null;
  end;

begin
   dum( I );
   dum( 1 );
end;