rt_gccstream/gcc/testsuite/gnat.dg/regpat1.adb

14 lines
241 B
Ada

-- { dg-do run }
with GNAT.Regpat; use GNAT.Regpat;
procedure regpat1 is
begin
declare
Re : Pattern_Matcher := Compile ("a[]b");
begin
raise Program_Error;
end;
exception
when Expression_Error => null;
end regpat1;