summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/data_initialized.f90
blob: 56cf059ae36b26075d9a5e77ca05959f4e3a713d (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! { dg-options "-std=f95" }
! Tests fix for PR17737 - already initialized variable cannot appear
! in data statement
      integer :: i, j = 1
      data i/0/
      data i/0/   ! { dg-error "Extension: re-initialization" }
      data j/2/   ! { dg-error "Extension: re-initialization" }
      end