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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [allocate_stat_2.f90] - Rev 302

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

! { dg-do compile }
! PR 41197
program main
  integer, dimension (4) :: ier = 0
  character(len=30), dimension(2) :: er
  integer, dimension (:), allocatable :: a
  allocate (a (16), stat = ier) ! { dg-error "must be a scalar INTEGER" }
  allocate (a (14), stat=ier(1),errmsg=er) ! { dg-error "must be a scalar CHARACTER" }
end

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.