summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/associate_2.f95
blob: a41398d7850c82ba9b926fe1272629a714060d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-std=f95" }

! PR fortran/38936
! Test that F95 rejects ASSOCIATE.

PROGRAM main
  IMPLICIT NONE

  ASSOCIATE (a => 5) ! { dg-error "Fortran 2003" }
  END ASSOCIATE
END PROGRAM main