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;