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/] [default_numeric_type_1.f90] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
! Tests the fix for PR 31222, in which the type of the arguments of abs
4
! and int below were not detected to be of default numeric type..
5
!
6
! Contributed by Tobias Burnus 
7
!
8
subroutine mysub1(a,b,mode,dis)
9
!  integer :: mode
10
!  real :: dis
11
  dimension a(abs(mode)),b(int(dis))
12
  print *, mod
13
  write (*,*) abs(mode), nint(dis)
14
end subroutine
15
 
16
program testprog
17
  call mysub1((/1.,2./),(/1.,2.,3./),-2, 3.2)
18
end
19
! { dg-final { cleanup-tree-dump "original" } }

powered by: WebSVN 2.1.0

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