| 1 |
-- { dg-do compile } |
| 2 |
-- { dg-options "-O" } |
| 3 |
|
| 4 |
package Array7 is |
| 5 |
|
| 6 |
type I is interface; |
| 7 |
|
| 8 |
type Rec (Name_Len : Natural) is new I with record |
| 9 |
Input : String (1 .. Name_Len); |
| 10 |
end record; |
| 11 |
|
| 12 |
function Image (R : Rec) return String is ("I" & String (R.Input)); |
| 13 |
|
| 14 |
end Array7; |