]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gfortran.dg/enum_5.f90
decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonsta...
[gcc.git] / gcc / testsuite / gfortran.dg / enum_5.f90
CommitLineData
25d8f0a2
TS
1! { dg-do compile }
2! Program to test ENUM parsing errors
3
4program main
5 implicit none
6 integer :: i = 1
7
8 enum, bind (c) ! { dg-warning "New in Fortran 2003" }
df8652dc 9 enumerator :: red, black = i ! { dg-error "is a variable" }
25d8f0a2
TS
10 enumerator :: blue = 1
11 end enum junk ! { dg-error "Syntax error" }
12
13 blue = 10 ! { dg-error "Expected VARIABLE" }
14
15end program main ! { dg-excess-errors "" }
This page took 0.119899 seconds and 5 git commands to generate.