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.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [f2c_3.f90] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! { dg-options "-ff2c" }
3
! Verifies that internal functions are not broken by f2c calling conventions
4
program test
5
  real, target :: f
6
  real, pointer :: q
7
  real :: g
8
  f = 1.0
9
  q=>f
10
  g = foo(q)
11
  if (g .ne. 1.0) call abort
12
contains
13
function foo (p)
14
  real, pointer :: foo
15
  real, pointer :: p
16
  foo => p
17
end function
18
end program

powered by: WebSVN 2.1.0

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