ai_116.ads

来自「用于进行gcc测试」· ADS 代码 · 共 24 行

ADS
24
字号
--  { dg-do compile }with Ada.Finalization; use Ada;package ai_116 is   pragma Preelaborate;   type Buffer_Type is limited interface;   type Handle is new Finalization.Limited_Controlled and Buffer_Type with     private;   pragma Preelaborable_Initialization(Handle);   type Ptr is access all String;   Null_Handle : constant Handle;private   type Handle is new Finalization.Limited_Controlled and Buffer_Type with      record         Data     : Ptr  := null;      end record;   Null_Handle : constant Handle :=     (Finalization.Limited_Controlled with Data => null);end ai_116;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?