mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
24 lines
361 B
Ada
24 lines
361 B
Ada
-- { dg-do compile }
|
|
-- { dg-options "-g1" }
|
|
|
|
procedure Debug15 is
|
|
|
|
type Shape is abstract tagged record
|
|
S : Integer;
|
|
end record;
|
|
|
|
type Rectangle is new Shape with record
|
|
R : Integer;
|
|
end record;
|
|
|
|
X : Integer;
|
|
|
|
R: Rectangle := (1, 2);
|
|
S: Shape'Class := R;
|
|
|
|
begin
|
|
X := 12;
|
|
end;
|
|
|
|
-- { dg-final { scan-assembler-not "loc 2" } }
|