2 ! Program to test ENUM parsing errors
7 enumerator
:: red
, black
8 integer :: x
! { dg-error "Unexpected data declaration" }
9 enumerator blue
= 1 ! { dg-error "Syntax error in ENUMERATOR definition" }
12 red
= 42 ! { dg-error "variable definition context" }
14 enumerator
:: sun
! { dg-error "ENUM" }