| 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 |
-- The DW_AT_byte_size attribute DWARF expression for the |
| 6 |
-- DW_TAG_structure_type DIE that describes Rec_Type contains the -4u literal. |
| 7 |
-- Check that it is not created using an inefficient encoding (DW_OP_const1s |
| 8 |
-- is expected). |
| 9 |
|
| 10 |
procedure Debug8 is |
| 11 |
|
| 12 |
type Rec_Type (I : Integer) is record |
| 13 |
B : Boolean; |
| 14 |
case I is |
| 15 |
when 0 => |
| 16 |
null; |
| 17 |
when 1 .. 10 => |
| 18 |
C : Character; |
| 19 |
when others => |
| 20 |
N : Natural; |
| 21 |
end case; |
| 22 |
end record; |
| 23 |
|
| 24 |
R : access Rec_Type := null; |
| 25 |
|
| 26 |
begin |
| 27 |
null; |
| 28 |
end Debug8; |
| 29 |
|
| 30 |
-- { dg-final { scan-assembler-not "DW_OP_const4u" } } |
| 31 |
-- { dg-final { scan-assembler-not "DW_OP_const8u" } } |