OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [valid1.adb] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do run }
2
--  { dg-options "-gnatVi" }
3
 
4
procedure valid1 is
5
   type m is range 0 .. 10;
6
   for m'size use 8;
7
 
8
   type r is record
9
      a, b : m;
10
      c, d, e, f : boolean;
11
   end record;
12
   pragma Pack (r);
13
   for R'size use 20;
14
 
15
   type G is array (1 .. 3, 1 .. 3) of R;
16
   pragma Pack (G);
17
 
18
   procedure h (c : m) is begin null; end;
19
 
20
   GG : G := (others => (others => (2, 3, true, true, true, true)));
21
 
22
begin
23
   h (GG (3, 2).a);
24
end;

powered by: WebSVN 2.1.0

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