c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr91565.f90
blobe4e121c717acf5a4cabd1c8fdda45ed2b8091069
1 ! { dg-do compile }
2 ! PR fortran/91565
3 ! Contributed by Gerhard Steinmetz
4 program p
5 integer, parameter :: a(2) = [2,2]
6 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "ORDER at .1. is not a permutation of the size of SHAPE at .2." }
7 end
9 subroutine foo
10 integer, parameter :: a(1) = 1
11 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "are different" }
12 end
14 subroutine bar
15 integer, parameter :: a(1,2) = 1
16 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "are different" }
17 end