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

Subversion Repositories openrisc

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

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 PR29284 in which an ICE would occur in converting
3
! the call to a suboutine with an assumed character length, optional
4
! dummy that is not present.
5
!
6
! Contributed by Rakuen Himawari  
7
!
8
      MODULE foo
9
      CONTAINS
10
        SUBROUTINE sub1(a)
11
          CHARACTER (LEN=*), OPTIONAL :: a
12
          WRITE(*,*) 'foo bar'
13
        END SUBROUTINE sub1
14
 
15
      SUBROUTINE sub2
16
        CALL sub1()
17
      END SUBROUTINE sub2
18
 
19
     END MODULE foo
20
! { dg-final { cleanup-modules "foo" } }

powered by: WebSVN 2.1.0

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