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
Preserving locations for variable-uses and constants (PR c++/43486)
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt21_pkg.adb
blob
3c87321dbffe53b3ab5876a138468d8ec8cfdec7
1
package body
Opt21_Pkg
is
2
3
function
Get_Object
(
Object
:
not null access
R
)
return
System
.
Address
is
4
begin
5
return
Object
.
Ptr
;
6
end
;
7
8
function
Convert
(
W
:
Obj
)
return
System
.
Address
is
9
begin
10
if
W
=
null then
11
return
System
.
Null_Address
;
12
else
13
return
Get_Object
(
W
);
14
end if
;
15
end
;
16
17
end
Opt21_Pkg
;