URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [volatile4.adb] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
-- { dg-do run } procedure Volatile4 is type My_Int is new Integer; pragma Volatile (My_Int); type Rec is record I : My_Int; end record; function F (R : Rec) return Rec is begin return R; end; R : Rec := (I => 0); begin R := F (R); if R.I /= 0 then raise Program_Error; end if; end;
Go to most recent revision | Compare with Previous | Blame | View Log