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-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
noreturn4.adb
blob
7225f6cb4f2582e9da9a450ece0db5ba5ead0a53
1
-- { dg-do compile }
2
3
with
Noreturn4_Pkg
;
use
Noreturn4_Pkg
;
4
5
package body
Noreturn4
is
6
7
procedure
P1
(
Msg
:
String
)
is
8
begin
9
P1
(
Msg
,
0
);
10
end
;
11
procedure
P1
(
Msg
:
String
;
Val
:
Integer
)
is
12
begin
13
Fatal_Error
(
Value
(
It
));
14
end
;
15
16
procedure
Fatal_Error
(
X
:
Integer
)
is
17
begin
18
raise
PRogram_Error
;
19
end
;
20
21
end
Noreturn4
;