summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/enum_1.f90
blob: 0156cb576f08cbfbeb25c1a1d1a1dd4fd9da3a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! Program to test ENUM parsing 

program main
  implicit none
  enum, bind (c)
    enumerator :: red, black
    enumerator blue
  end enum
  if (red /= 0) call abort
end program main