mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
10 lines
309 B
Fortran
10 lines
309 B
Fortran
! { dg-do compile }
|
|
! { dg-options "-std=f2008" }
|
|
!
|
|
! Fortran < 2008 allows 7 dimensions
|
|
! Fortran 2008 allows 15 dimensions (including co-array ranks)
|
|
!
|
|
integer :: a(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
|
|
integer :: b(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) ! { dg-error "has more than 15 dimensions" }
|
|
end
|