OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [discr18_pkg.ads] - Diff between revs 304 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
package Discr18_Pkg is
package Discr18_Pkg is
 
 
   subtype Length is Natural range 0..256;
   subtype Length is Natural range 0..256;
 
 
   type Multiple_Discriminants (A, B : Length) is tagged
   type Multiple_Discriminants (A, B : Length) is tagged
      record
      record
         S1 : String (1..A);
         S1 : String (1..A);
         S2 : String (1..B);
         S2 : String (1..B);
      end record;
      end record;
 
 
   procedure Do_Something (Rec : in out Multiple_Discriminants);
   procedure Do_Something (Rec : in out Multiple_Discriminants);
 
 
   type Multiple_Discriminant_Extension (C : Length) is
   type Multiple_Discriminant_Extension (C : Length) is
      new Multiple_Discriminants (A => C, B => C)
      new Multiple_Discriminants (A => C, B => C)
      with record
      with record
         S3 : String (1..C);
         S3 : String (1..C);
      end record;
      end record;
 
 
end Discr18_Pkg;
end Discr18_Pkg;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.