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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pr26246_1.f90] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
! PR fortran/26246
! PR fortran/26246
! { dg-options "-fdump-tree-original" }
! { dg-options "-fdump-tree-original" }
! { dg-do compile }
! { dg-do compile }
module pr26246_1
module pr26246_1
  implicit none
  implicit none
  contains
  contains
    function foo(string)
    function foo(string)
    character(*), intent(in) :: string
    character(*), intent(in) :: string
    character(len=len(string)+2) :: foo
    character(len=len(string)+2) :: foo
    if (index(trim(string), '"').ne.0) then
    if (index(trim(string), '"').ne.0) then
      foo = "'" // trim(string) // "'"
      foo = "'" // trim(string) // "'"
    end if
    end if
  end function foo
  end function foo
end module pr26246_1
end module pr26246_1
! { dg-final { scan-tree-dump-times "static int" 0 "original" } }
! { dg-final { scan-tree-dump-times "static int" 0 "original" } }
! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-modules "pr26246_1" } }
! { dg-final { cleanup-modules "pr26246_1" } }
 
 

powered by: WebSVN 2.1.0

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