summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/regpat1.adb
blob: fdd258942a3c92b1602c3b702bc717d8ad5c9e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--  { 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;