repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Warn pointer to signed integer cast for ilp32
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
controlled5_pkg.adb
blob
828f9efec1ab0340ec082b3dbea0477f0804e1e1
1
with
Ada
.
Tags
;
2
3
package body
Controlled5_Pkg
is
4
5
type
Child
is new
Root
with null record
;
6
7
function
Dummy
(
I
:
Integer
)
return
Root
'Class
is
8
A1
:
T_Root_Class
:=
new
Child
;
9
My_Var
:
Root
'Class
:=
A1
.
all
;
10
begin
11
if
I
=
0
then
12
return
My_Var
;
13
else
14
return
Dummy
(
I
-
1
);
15
end if
;
16
end
Dummy
;
17
18
end
Controlled5_Pkg
;