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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
discr22.adb
blob
af4f9ab78997d006263ec3b7eeb34151126a46d2
1
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
4
procedure
Discr22
is
5
6
subtype
Precision
is
Integer
range
1
..
5
;
7
8
type
Rec
(
D1
:
Precision
;
D2
:
Integer
)
is record
9
case
D1
is
10
when
1
=>
I
:
Integer
;
11
when others
=>
null
;
12
end case
;
13
end record
;
14
for
Rec
use record
15
D1
at
0
range
0
..
7
;
16
end record
;
17
18
P
:
Precision
;
19
X
:
Rec
(
P
,
0
);
20
21
begin
22
null
;
23
end
;