PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / associate_30.f90
blobad15d8bf576f36a9ee6875b0cce5beeb76a3ae12
1 ! { dg-do compile }
3 ! Test the fix for PR67543
5 ! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
7 subroutine s1
8 associate (x => null()) ! { dg-error "cannot be NULL()" }
9 end associate
10 end subroutine
12 subroutine s2
13 associate (x => [null()]) ! { dg-error "has no type" }
14 end associate
15 end subroutine