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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [intent_out_1.f90] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the fix for PRs 18578, 18579 and their repeats 20857 and 20885.
3
! Contributed by Paul Thomas  
4
  real, parameter :: a =42.0
5
  real :: b
6
  call foo(b + 2.0)    ! { dg-error "must be definable" }
7
  call foo(a)          ! { dg-error "must be definable" }
8
  call bar(b + 2.0)    ! { dg-error "must be definable" }
9
  call bar(a)          ! { dg-error "must be definable" }
10
contains
11
  subroutine foo(a)
12
    real, intent(out) :: a
13
    a = 0.0
14
  end subroutine foo
15
  subroutine bar(a)
16
    real, intent(INout) :: a
17
    a = 0.0
18
  end subroutine bar
19
end

powered by: WebSVN 2.1.0

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