Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gnat.dg
/
capture_value.adb
blob: 10272a49ae14e9b24343221608887bd0c9973c92 [
file
] [
log
] [
blame
]
--
{
dg
-
do
run
}
procedure capture_value
is
x
:
integer
:=
0
;
begin
declare
z
:
integer renames x
;
begin
z
:=
3
;
x
:=
5
;
z
:=
z
+
1
;
if
z
/=
6
then
raise
Program_Error
;
end
if
;
end
;
end
;