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
x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
object_overflow1.adb
blob
d972f24a1fe24433df84b6faaeef4ad1cfe5f454
1
-- { dg-do compile }
2
3
with
Interfaces
.
C
;
use
Interfaces
.
C
;
4
5
procedure
Object_Overflow1
is
6
7
procedure
Proc
(
x
:
Boolean
)
is begin null
;
end
;
8
9
type
Arr
is array
(
ptrdiff_t
)
of
Boolean
;
10
Obj
:
Arr
;
-- { dg-warning "Storage_Error" }
11
12
begin
13
Obj
(
1
) :=
True
;
14
Proc
(
Obj
(
1
));
15
end
;