URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do compile }
|
-- { dg-do compile }
|
-- { dg-options "-gnatws" }
|
-- { dg-options "-gnatws" }
|
|
|
procedure Nested_Proc2 is
|
procedure Nested_Proc2 is
|
|
|
type Arr is array(1..2) of Integer;
|
type Arr is array(1..2) of Integer;
|
|
|
type Rec is record
|
type Rec is record
|
Data : Arr;
|
Data : Arr;
|
end record;
|
end record;
|
|
|
From : Rec;
|
From : Rec;
|
Index : Integer;
|
Index : Integer;
|
|
|
function F (X : Arr) return Integer is
|
function F (X : Arr) return Integer is
|
begin
|
begin
|
return 0;
|
return 0;
|
end;
|
end;
|
|
|
procedure Test is
|
procedure Test is
|
begin
|
begin
|
Index := F (From.Data);
|
Index := F (From.Data);
|
If Index /= 0 then
|
If Index /= 0 then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
begin
|
begin
|
Test;
|
Test;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.