2010-11-11 Jakub Jelinek <jakub@redhat.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / noreturn1.adb
blobf854e662be3a45fee3b6c14f1d719d9743a0ca35
1 -- { dg-do compile }
3 package body Noreturn1 is
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;
15 end Noreturn1;