| 1 |
-- { dg-do compile } |
| 2 |
-- { dg-skip-if "No Dwarf" { { hppa*-*-hpux* } && { ! lp64 } } } |
| 3 |
-- { dg-options "-cargs -O0 -g -dA -fgnat-encodings=minimal -margs" } |
| 4 |
|
| 5 |
procedure Debug16 is |
| 6 |
|
| 7 |
type Number_T (Exists : Boolean := False) is |
| 8 |
record |
| 9 |
case Exists is |
| 10 |
when True => |
| 11 |
Value : Natural range 0 .. 255; |
| 12 |
when False => |
| 13 |
null; |
| 14 |
end case; |
| 15 |
end record; |
| 16 |
pragma Pack (Number_T); |
| 17 |
|
| 18 |
X : Number_T; |
| 19 |
|
| 20 |
begin |
| 21 |
X := (Exists => True, Value => 10); |
| 22 |
if X.Exists then -- STOP |
| 23 |
X.Value := X.Value + 1; |
| 24 |
end if; |
| 25 |
end; |
| 26 |
|
| 27 |
-- { dg-final { scan-assembler-times "DW_AT_discr" 4 } } |