summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/check1.adb
blob: f3d32333cd946defe174f82303465e5c24b8e529 (plain)
1
2
3
4
5
6
7
8
-- { dg-do compile }

package body Check1 is
   function FD (X : access R) return P2 is
   begin
      return P2 (X.Disc);
   end FD;
end Check1;