OSDN Git Service

2005-01-11 Paul Thomas <pault@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / enum_2.f90
1 ! { dg-do compile }
2 ! Program to test ENUM parsing errors 
3
4 program main
5   implicit none
6   enum, bind (c)  ! { dg-warning "New in Fortran 2003" }
7     enumerator :: red, black
8     integer :: x  ! { dg-error "Unexpected data declaration" }
9     enumerator blue = 1  ! { dg-error "Syntax error in ENUMERATOR definition" }
10   end enum
11
12   enumerator :: sun  ! { dg-error "ENUM" }
13 end program main