URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [nested_proc2.adb] - Rev 310
Go to most recent revision | Compare with Previous | Blame | View Log
-- { dg-do compile } -- { dg-options "-gnatws" } procedure Nested_Proc2 is type Arr is array(1..2) of Integer; type Rec is record Data : Arr; end record; From : Rec; Index : Integer; function F (X : Arr) return Integer is begin return 0; end; procedure Test is begin Index := F (From.Data); If Index /= 0 then raise Program_Error; end if; end; begin Test; end;
Go to most recent revision | Compare with Previous | Blame | View Log