(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.fortran-torture/
execute/
enum_1.f90
! Program to test the default initialisation of enumerators 

program main
  implicit none

  enum, bind (c)
    enumerator :: red , yellow, blue
    enumerator :: green
  end enum

  enum, bind (c)
    enumerator :: a , b , c = 10
    enumerator :: d
  end enum


  if (red /= 0 ) STOP 1
  if (yellow /= 1) STOP 2
  if (blue /= 2) STOP 3
  if (green /= 3) STOP 4

  if (a /= 0 ) STOP 5
  if (b /= 1) STOP 6
  if (c /= 10) STOP 7
  if (d /= 11) STOP 8

  
end program main