OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [unchecked_convert3.adb] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do run }
2
-- { dg-options "-gnatVa" }
3
 
4
with Unchecked_Conversion;
5
 
6
procedure Unchecked_Convert3 is
7
 
8
  type Word is range -(2**15) .. (2**15) - 1;
9
  type UWord is mod (2**16);
10
 
11
  function To_Word is new unchecked_conversion (UWord, Word);
12
 
13
  function F return UWord is
14
  begin
15
    return 65036;
16
  end;
17
 
18
  W : Word := To_Word(F);
19
 
20
begin
21
  null;
22
end;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.