| 1 |
-- { dg-do compile } |
| 2 |
-- { dg-options "-O2 -gnatn" } |
| 3 |
|
| 4 |
with Opt7_Pkg; use Opt7_Pkg; |
| 5 |
|
| 6 |
package Opt7 is |
| 7 |
|
| 8 |
type Rec is record |
| 9 |
E : Enum; |
| 10 |
end record; |
| 11 |
|
| 12 |
function Image (R : Rec) return String is |
| 13 |
(if R.E = A then Image (R.E) else ""); |
| 14 |
|
| 15 |
end Opt7; |