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
RISC-V: Add support for riscv-*-*.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
discr50.adb
blob
e7de16d9e7cb4363a8a0d6a660605767667fbe3f
1
-- { dg-do compile }
2
3
procedure
Discr50
is
4
type
My_Record
(
D
:
Integer
)
is record
5
A
:
Integer
;
6
end record
;
7
8
B
:
My_Record
(
Positive
range
1
..
10
);
-- { dg-error "a subtype indication is not a valid discriminant constraint" }
9
begin
10
null
;
11
end
Discr50
;