view gcc/testsuite/gnat.dg/graphic.adb @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +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;