aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/renaming12.ads
blob: 9c3ad7cb818ea02fc29eb8bbe7ee24f3c17eb93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Renaming12 is

  type Index_Type is range 0 .. 40;

  type Rec1 is record
    B : Boolean;
  end record;

  type Arr is array (Index_Type range <>) of Rec1;

  type Rec2 (Count : Index_Type := 0) is record
    A : Arr (1 .. Count);
  end record;

  package Ops is

    function "=" (L : Rec2; R : Rec2) return Boolean renames Renaming12."=";

  end Ops;

  procedure Dummy;

end Renaming12;