2 ! Program to test ENUM parsing errors
7 enumerator
:: red
, black
= 2
8 enumerator
:: blue
= 1, red
! { dg-error "already has basic type" }
12 enumerator
:: r
, b(10) = 2 ! { dg-error "Syntax error" }
13 enumerator
, save :: g
= 1 ! { dg-error "Syntax error" }
14 end ! { dg-error " END ENUM" }
16 end program main
! { dg-error "Expecting END ENUM statement" }
17 ! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }