2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr67614.f90
blobed07385970dafb185e07ef57b39509652f404c60
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
3 ! PR fortran/67614
5 program foo
6 implicit none
7 integer, pointer :: z
8 if (null(z)) 10, 20, 30 ! { dg-error "Invalid NULL" }
9 10 continue
10 20 continue
11 30 continue
12 end program foo