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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [func_decl_2.f90] - Rev 816

Compare with Previous | Blame | View Log

! { dg-do compile }
! Test fix for PR16943 in which the double typing of
! N caused an error.  This is a common extension to the
! F95 standard, so the error is only thrown for -std=f95
! or -pedantic.
!
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
!
  program bug8 
    implicit none 
    stop " OK. " 

  contains 

    integer function bugf(M) result (N) 
      integer, intent (in) :: M 
      integer :: N ! { dg-warning "already has basic type of INTEGER" }
      N = M 
      return 
    end function bugf
  end program bug8

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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