view gcc/testsuite/gnat.dg/graphic.adb @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

-- { dg-do compile }

with Ada.Tags.Generic_Dispatching_Constructor;
package body Graphic is
--
  function Dispatching_Input is new Tags.Generic_Dispatching_Constructor
    (T           => Object,
     Parameters  => Streams.Root_Stream_Type'Class,
    Constructor => Object'Input);
--
  function XML_Input
    (S : access Streams.Root_Stream_Type'Class) return Object'Class
  is
    Result : constant Object'Class :=
        Dispatching_Input (Tags.Internal_Tag (" "), S);
    begin
      return Result;
    end XML_Input;
end Graphic;