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
/
specs
/
access_constant.ads
blob
fa9829e8396b3cb0e5d78b22e131f59009a182f6
1
-- { dg-do compile }
2
package
Access_Constant
is
3
4
c
:
aliased constant
integer
:=
3
;
5
6
type
const_ptr
is access constant
integer
;
7
cp
:
const_ptr
:=
c
'access
;
8
9
procedure
inc
(
var_ptr
:
access
integer
:=
10
cp
)
-- { dg-error "access-to-constant" }
11
is abstract
;
12
13
end
Access_Constant
;