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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
tamdt.adb
blob
81af6ade2838643ccf2d3fdb41907f5030e3bcea
1
2
with
Tamdt_Aux
;
3
4
package body
TAMDT
is
5
type
TAMT1
is new
Tamdt_Aux
.
Priv
(
X
=>
1
);
6
type
TAMT2
is new
Tamdt_Aux
.
Priv
;
7
8
procedure
Check
is
9
Ptr1
:
TAMT1_Access
:=
new
TAMT1
;
10
Ptr2
:
TAMT2_Access
:=
new
TAMT2
(
X
=>
2
);
11
begin
12
if
Ptr1
.
all
.
X
/=
1
then
13
raise
Program_Error
;
14
end if
;
15
if
Ptr2
.
all
.
X
/=
2
then
16
raise
Program_Error
;
17
end if
;
18
end
;
19
end
;