ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gnat.dg/opt22.adb

21 lines
301 B
Ada
Raw Normal View History

2024-04-01 15:19:46 +00:00
-- { dg-do run }
-- { dg-options "-O" }
with Opt22_Pkg; use Opt22_Pkg;
procedure Opt22 is
procedure Go (S : String) is
begin
begin
Fail;
exception
when Constraint_Error => Put ("the " & S);
end;
Put ("the " & S);
end;
begin
Go ("message");
end;