2010-04-20 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gnat.dg / addr3.adb
blob837035ab38d20ef454c3765085c8d4a38eade7ed
1 -- { dg-do compile }
3 with text_io;
4 with System;
5 procedure addr3 is
7 Type T_SAME_TYPE is new System.Address;
9 Type T_OTHER_TYPE is new System.Address;
11 I : constant integer := 0;
12 procedure dum ( i : INTEGER ) is
13 begin
14 text_io.put_line ("Integer op");
15 null;
16 end;
18 procedure dum ( i : system.ADDRESS ) is
19 begin
20 null;
21 end;
23 procedure dum ( i : T_SAME_TYPE ) is
24 begin
25 null;
26 end;
28 procedure dum ( i : T_OTHER_TYPE ) is
29 begin
30 null;
31 end;
33 begin
34 dum( I );
35 dum( 1 );
36 end;