Commit 58dc03b4 by Arnaud Charlet

New tests.

From-SVN: r128432
parent 82da9a90
-- { dg-do compile }
procedure Discr_Test2 is
type Ptr is access all integer;
type Ar is array (Integer range <>) of Ptr;
type Inner (Discr : Integer) is record
Comp : Ar (1..Discr);
end record;
type Wrapper (Discr : Integer) is record
Comp : Inner (Discr);
end record;
Val : constant Wrapper := (0, Comp => <>);
begin
null;
end;
-- { 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;
-- { dg-do compile }
package box1 is
type Root is tagged null record;
type Der1 is new Root with record
B : Boolean;
end record;
type Der2 is new Der1 with null record;
type Der3 is new Der2 with null record;
Obj : Der3 := (Der2 with others => <>);
end;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment