OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 302 jeremybenn
!PR fortran/32238
2
! { dg-do compile }
3
! { dg-final { cleanup-modules "bug_test" } }
4
 
5
module bug_test
6
 
7
contains
8
  subroutine bug(c)
9
 
10
  implicit none
11
 
12
  integer, parameter :: fp = selected_real_kind(13)
13
  complex(kind=fp)              :: c(:,:)
14
  where( abs( aimag( c ) ) < 1.e-10_fp )                             &
15
  &    c = cmplx( real( c , fp ) , 0._fp , fp )
16
  where( abs( real( c , fp ) ) < 1.e-10_fp )                         &
17
  &    c = cmplx( 0._fp , aimag( c ) , fp )
18
 
19
  return
20
  end subroutine bug
21
 
22
end module bug_test

powered by: WebSVN 2.1.0

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