aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/discr46.adb
blob: 84ac91d413df587e496ee1566129d1cebc77dffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- { dg-do compile }

package body Discr46 is

   function F (Id : Enum) return Integer is
      Node : Integer := 0;
   begin
      if A (Id).R.D = True then
         Node := A (Id).R.T;
      end if;
      return Node;
   end; 

end Discr46;