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
compiler: give error for non-int arguments to make
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
concat_length.adb
blob
fe482d98d0a38da2c2a0d11d4e8b81945c9c5bcf
1
-- { dg-do run }
2
3
procedure
Concat_Length
is
4
type
Byte
is mod
256
;
5
for
Byte
'Size
use
8
;
6
type
Block
is array
(
Byte
range
<>)
of
Integer
;
7
8
C0
:
Block
(
1
.
.7
) := (
others
=>
0
);
9
C1
:
Block
(
8
.
.255
) := (
others
=>
0
);
10
C2
:
Block
:=
C0
&
C1
;
11
begin
12
if
C2
'Length
/=
255
then
13
raise
Program_Error
;
14
end if
;
15
end
;