self_aggregate_with_array.adb

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

ADB
22
字号
-- { dg-do run }procedure self_aggregate_with_array is   type Value_Bounds is array (1 .. 2) of Natural;   type Sensor is record      Value  : Natural;      Bounds : Value_Bounds;   end record;   Pressure : Sensor;begin   Pressure.Value := 256;   Pressure := (Value => Pressure.Value, Bounds => (1, 2));   if Pressure.Value /= 256 then      raise Program_Error;   end if;end;

⌨️ 快捷键说明

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