view gcc/testsuite/gfortran.dg/array_section_3.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
!
! PR fortran/54225
!
! Contributed by robb wu
!
program test
  implicit none
  real :: A(2,3)

  print *, A(1, *)  ! { dg-error "Expected array subscript" }
end program

subroutine test2
integer, dimension(2) :: a
a(*) = 1  ! { dg-error "Expected array subscript" }
end