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
P0329R4: Designated Initialization
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
array21.adb
blob
c642afdd1199dec45949eb93b7bb4682477385d7
1
-- { dg-do run }
2
3
with
System
;
4
5
procedure
Array21
is
6
7
type
Index_T
is mod
System
.
Memory_Size
;
8
type
Arr
9
is array
(
Index_T
range
Index_T
'Last
/
2
-
3
..
Index_T
'Last
/
2
+
3
)
of
Integer
;
10
C
:
constant
Arr
:= (
1
,
others
=>
2
);
11
12
begin
13
if
C
/= (
1
,
2
,
2
,
2
,
2
,
2
,
2
)
then
14
raise
Program_Error
;
15
end if
;
16
end
;