2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr78278.f90
blobfd50e3e1c186d8605e16f80c3e2d750f602bf363
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 ! PR fortran/78278
4 program p
5 character, pointer :: x => null()
6 data x /null()/ ! { dg-error "GNU Extension: re-initialization" }
7 print *, associated(x)
8 end
10 subroutine foo
11 real :: x = 42
12 data x /0/ ! { dg-error "GNU Extension: re-initialization" }
13 print *, x
14 end subroutine foo