PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_remapping_8.f90
blob94fe6c553ef395706ebab33ea88b40db173fa207
1 ! { dg-do compile }
3 ! PR 54788 ICE on pointer-array element assignment
5 program bug
6 integer, pointer :: a(:)
7 integer :: b
8 allocate(a(0:0))
9 a(0:0) => b ! { dg-error "Rank remapping target must be rank 1 or simply contiguous" }
10 end