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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [PR19754_2.f90] - Blame information for rev 308

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! Test of Steve Kargl's fix to PR19754
3
! This exercises bugs that the original patch caused
4
!
5
program PR19754_2
6
   real a(2,2), b(2,2),c(2,2),d(2,2)
7
   integer i(2,2),j(2,2),k(2,2)
8
   a = 1. ; b = 2. ;  i = 4
9
   c = b - floor( a / b )        ! this caused an ICE
10
   d = b - real(floor( a / b ))
11
   if (any (c/=d)) call abort ()
12
   j = aint(b) - floor( a / b )  ! this caused an ICE
13
   if (any(real(j)/=d)) call abort ()
14
   c = i
15
   if (any(real(i)/=c)) call abort ()
16
   c = i + b                     ! this caused an ICE
17
   d = real(i) + b
18
   if (any(c/=d)) call abort ()
19
   j = i + aint (a)
20
   k = i + a                     ! this caused an ICE
21
   if (any(j/=k)) call abort ()
22
end program PR19754_2

powered by: WebSVN 2.1.0

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