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
Corrected date in changelog
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
object_overflow1.adb
blob
ba7f657e71027b78c7e04f577982dafd49da873a
1
-- { dg-do compile }
2
3
procedure
Object_Overflow1
is
4
5
procedure
Proc
(
x
:
Boolean
)
is begin null
;
end
;
6
7
type
Arr
is array
(
Long_Integer
)
of
Boolean
;
8
Obj
:
Arr
;
-- { dg-warning "Storage_Error" }
9
10
begin
11
Obj
(
1
) :=
True
;
12
Proc
(
Obj
(
1
));
13
end
;