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
runtime: allow preemption in fast syscall return
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
noreturn1.adb
blob
f854e662be3a45fee3b6c14f1d719d9743a0ca35
1
-- { dg-do compile }
2
3
package body
Noreturn1
is
4
5
procedure
Error
(
E
:
in
Exception_Occurrence
)
is
6
Occurrence_Message
:
constant
String
:=
Exception_Message
(
E
);
7
begin
8
if
Occurrence_Message
=
"$"
then
9
raise
Program_Error
;
10
else
11
raise
Constraint_Error
;
12
end if
;
13
end
;
14
15
end
Noreturn1
;