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
* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
discr26.adb
blob
2d498889bf8186477c4b5b546bc55293365b064c
1
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
4
package body
Discr26
is
5
6
function
F1
return
My_T1
is
7
R
:
My_T1
;
8
begin
9
return
R
;
10
end
;
11
12
procedure
Proc
is
13
begin
14
if
F1
.
D
=
0
then
15
raise
Program_Error
;
16
end if
;
17
end
;
18
19
end
Discr26
;