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
2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
specs
/
empty_variants.ads
blob
079b64ac812203f9b8012790ce0bdb625fe22b1f
1
-- { dg-do compile }
2
-- { dg-options "-gnatdF" }
3
4
package
Empty_Variants
is
5
6
type
Rec
(
D
:
Integer
:=
1
)
is record
7
case
D
is
8
when
1
=>
9
I
:
Integer
;
10
when
2
..
5
=>
11
J
:
Integer
;
12
K
:
Integer
;
13
when
6
=>
14
null
;
15
when
7
..
8
=>
16
null
;
17
when others
=>
18
L
:
Integer
;
19
M
:
Integer
;
20
N
:
Integer
;
21
end case
;
22
end record
;
23
24
R
:
Rec
;
25
26
I
:
Integer
:=
R
.
I
;
27
J
:
Integer
:=
R
.
J
;
28
K
:
Integer
:=
R
.
K
;
29
L
:
Integer
:=
R
.
L
;
30
M
:
Integer
:=
R
.
L
;
31
32
end
Empty_Variants
;