Merge from mainline
[official-gcc.git] / gcc / testsuite / gfortran.dg / enum_3.f90
blob277cabe9a800b96ed1ddd7cd9e798d00fd5cebbf
1 ! { dg-do compile }
2 ! Program to test ENUM parsing errors
4 program main
5 implicit none
6 enum, bind (c)
7 enumerator :: red, black = 2.2 ! { dg-error "initialized with integer expression" }
8 enumerator :: blue = "x" ! { dg-error "initialized with integer expression" }
9 end enum ! { dg-error "has no ENUMERATORS" }
11 end program main