Merge from mainline.
[official-gcc.git] / gcc / testsuite / gfortran.dg / enum_5.f90
blob604e50df44adc2db88d82f9e85707739763fb36f
1 ! { dg-do compile }
2 ! Program to test ENUM parsing errors
4 program main
5 implicit none
6 integer :: i = 1
8 enum, bind (c)
9 enumerator :: red, black = i ! { dg-error "is a variable" }
10 enumerator :: blue = 1
11 end enum junk ! { dg-error "Syntax error" }
13 blue = 10 ! { dg-error "Expected VARIABLE" }
15 end program main ! { dg-excess-errors "" }