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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do compile }
2
 
3
with Rational_Arithmetic;
4
use  Rational_Arithmetic;
5
procedure Test_Rational_Arithmetic is
6
  R: Rational := 10/2;
7
  B: Boolean  := R = 5/1;  -- RHS cannot be a Whole
8
                           -- ("/" has been "undefined")
9
  C: Boolean  := R = Rational' (5/1);
10
  D: Boolean  := (6/3) = R;
11
  E: Boolean  := (2/1 = 4/2);
12
begin
13
  R := 1+1/(4/8);
14
  R := 2*(3/2)-(7/3)*3;
15
end Test_Rational_Arithmetic;

powered by: WebSVN 2.1.0

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