[Fortran] OpenACC – permit common blocks in some clauses
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_section_3.f90
blobd3093d14d5030494bc017d43a8589d7397f7cc21
1 ! { dg-do compile }
3 ! PR fortran/54225
5 ! Contributed by robb wu
7 program test
8 implicit none
9 real :: A(2,3)
11 print *, A(1, *) ! { dg-error "Expected array subscript" }
12 end program
14 subroutine test2
15 integer, dimension(2) :: a
16 a(*) = 1 ! { dg-error "Expected array subscript" }
17 end