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
gcc/cp
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
capture_value.adb
blob
10272a49ae14e9b24343221608887bd0c9973c92
1
-- { dg-do run }
2
3
procedure
capture_value
is
4
x
:
integer
:=
0
;
5
begin
6
declare
7
z
:
integer
renames
x
;
8
begin
9
z
:=
3
;
10
x
:=
5
;
11
z
:=
z
+
1
;
12
if
z
/=
6
then
13
raise
Program_Error
;
14
end if
;
15
end
;
16
end
;