aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt78.adb
blob: e46c92b27595848a8b982fd6d241cae076321fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- { dg-do compile }
-- { dg-options "-O" }

package body Opt78 is

   procedure Proc (P : UC; Msg : String) is
      Default : UC := (1, "!");
   begin
      if P = Default then
         raise Program_Error;
      else
         raise Constraint_Error;
      end if;
   end;

end Opt78;