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/] [specs/] [addr1.ads] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
 
3
with Interfaces; use Interfaces;
4
 
5
package Addr1 is
6
 
7
  type Arr is array (Integer range <>) of Unsigned_16;
8
 
9
  type Rec1 is record
10
    I1, I2: Integer;
11
  end record;
12
 
13
  type Rec2 is record
14
    I1, I2: Integer;
15
  end record;
16
  for Rec2'Size use 64;
17
 
18
  A: Arr (1 .. 12);
19
 
20
  Obj1: Rec1;
21
  for Obj1'Address use A'Address; -- { dg-bogus "alignment" }
22
 
23
  Obj2: Rec2;
24
  for Obj2'Address use A'Address; -- { dg-bogus "alignment" }
25
 
26
  Obj3: Rec1;
27
  for Obj3'Address use A(1)'Address; -- { dg-bogus "alignment" }
28
 
29
  Obj4: Rec1;
30
  for Obj4'Address use A(2)'Address; -- { dg-warning "(alignment|erroneous)" }
31
 
32
  Obj5: Rec1;
33
  for Obj5'Address use A(3)'Address; -- { dg-bogus "alignment" }
34
 
35
end Addr1;

powered by: WebSVN 2.1.0

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