Debian Codegraph @

gcc/testsuite/gnat.dg/specs/vfa3.ads

raw
1 -- { dg-do compile }
2
3 package VFA3 is
4
5 type Bit is mod 2**1
6 with Size => 1;
7
8 type Intr_Level_Field is record
9 Level_Low : Bit := 0;
10 Level_High : Bit := 0;
11 Edge_Low : Bit := 0;
12 Edge_High : Bit := 0;
13 end record with Pack, Size => 4;
14 for Intr_Level_Field use record
15 Level_Low at 0 range 0 .. 0;
16 Level_High at 0 range 1 .. 1;
17 Edge_Low at 0 range 2 .. 2;
18 Edge_High at 0 range 3 .. 3;
19 end record;
20
21 type Intr_Level_Cluster is array (0 .. 7) of Intr_Level_Field
22 with Volatile_Full_Access, Pack, Object_Size => 32;
23 -- There are 8 Fields in a 32-bit word.
24
25 end VFA3;