procedure Main is
   Too_Large : exception;

   --  the case promises the value was over 100, but 50 already raises
   procedure Check (X : Integer) with Exceptional_Cases => (Too_Large => X > 100) is
   begin
      if X > 50 then
         raise Too_Large;
      end if;
   end Check;
begin
   begin
      Check (10);
   exception
      when Too_Large =>
         null;
   end;
end Main;
