| 1 |
-- { dg-do compile } |
| 2 |
|
| 3 |
procedure Warn24 is |
| 4 |
type List_D (D : Boolean); |
| 5 |
|
| 6 |
type List_Acc is access List_D; |
| 7 |
|
| 8 |
type List_D (D : Boolean) is record |
| 9 |
Next : List_Acc (D); |
| 10 |
end record; |
| 11 |
|
| 12 |
X : List_D (True); |
| 13 |
begin |
| 14 |
X.Next := new List_D (False); |
| 15 |
end Warn24; |