gcc/testsuite/gnat.dg/aggr30.ads
raw| 1 | with Interfaces; |
| 2 | |
| 3 | package Aggr30 is |
| 4 | |
| 5 | type Data_Type is array (1 .. 4) of Interfaces.Unsigned_8; |
| 6 | |
| 7 | type Padding_Type is array (5 .. 4096) of Interfaces.Unsigned_8; |
| 8 | |
| 9 | type Rec is record |
| 10 | Data : Data_Type; |
| 11 | Padding : Padding_Type; |
| 12 | end record; |
| 13 | |
| 14 | procedure Init; |
| 15 | |
| 16 | procedure Init_Volatile; |
| 17 | |
| 18 | private |
| 19 | |
| 20 | Instance : Rec; |
| 21 | |
| 22 | Instance_Volatile : Rec; |
| 23 | pragma Volatile (Instance_Volatile); |
| 24 | |
| 25 | end Aggr30; |