c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr95502.f90
blobd40fd9a55080539ee80fe74ba72f23de05950167
1 ! { dg-do compile }
2 ! PR fortran/95502 - ICE in gfc_check_do_variable, at fortran/parse.c:4446
4 program p
5 integer, pointer :: z
6 nullify (z%kind) ! { dg-error "in variable definition context" }
7 z%kind => NULL() ! { dg-error "constant expression" }
8 end