object_overflow.adb

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

ADB
15
字号
-- { dg-do compile }procedure Object_Overflow is  type Rec is null record;  procedure Proc (x : Rec) is begin null; end;  type Arr is array(Long_Integer) of Rec;  Obj : Arr; -- { dg-warning "Storage_Error will be raised" }begin  Proc (Obj(1));end;

⌨️ 快捷键说明

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