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
PR debug/66535
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
test_self.adb
blob
6348c02a075f32aabb5707c78a5e445851ecb8dc
1
-- { dg-do run }
2
3
with
Text_IO
;
use
Text_IO
;
4
with
Self
;
use
Self
;
5
procedure
Test_Self
is
6
It
:
Lim
:=
G
(
5
);
7
begin
8
Change
(
It
,
10
);
9
if
Get
(
It
) /=
35
then
10
Put_Line
(
"self-referential aggregate incorrectly built"
);
11
end if
;
12
end
Test_Self
;