elab1.ads

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

ADS
22
字号
-- { dg-do compile }pragma Restrictions(No_Elaboration_Code);with System;package Elab1 is   type Ptrs_Type is array (Integer range 1 .. 2) of System.Address;   type Vars_Array is array (Integer range 1 .. 2) of Integer;   Vars : Vars_Array;   Val1 : constant Integer := 1;   Val2 : constant Integer := 2;   Ptrs : constant Ptrs_Type :=     (1  => Vars (Val1)'Address,      2  => Vars (Val2)'Address);end Elab1;

⌨️ 快捷键说明

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