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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [used_before_typed_2.f90] - Rev 749

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

! { dg-do compile }
! { dg-options "-std=gnu" }

! PR fortran/32095
! PR fortran/34228
! This program used to segfault, check this is fixed.
! Also check that -std=gnu behaves as expected.

SUBROUTINE test1 (n, arr)
  IMPLICIT NONE

  INTEGER :: arr(n) ! { dg-bogus "used before it is typed" }
  INTEGER :: n
  CHARACTER(len=LEN(a)) :: a ! { dg-error "used before it is typed" }
END SUBROUTINE test1

SUBROUTINE test2 ()
  IMPLICIT NONE

  DATA str/'abc'/ ! { dg-bogus "used before it is typed" }
  CHARACTER(len=3) :: str
END SUBROUTINE test2

Go to most recent revision | 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.