Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gfortran.dg / enum_8.f90
blob686b12880c404ae63517fec17aa6dc200b96ab39
1 ! { dg-do compile }
2 ! Program to test the initialisation range of enumerators
3 ! and kind values check
5 program main
6 implicit none
7 enum, bind (c) ! { dg-warning "New in Fortran 2003" }
8 enumerator :: pp , qq = 4294967295, rr ! { dg-error "not initialized with integer" }
9 end enum ! { dg-error "has no ENUMERATORS" }
11 enum, bind (c) ! { dg-warning "New in Fortran 2003" }
12 enumerator :: p , q = 4294967299_8, r ! { dg-error "Arithmetic overflow" }
13 end enum ! { dg-error "has no ENUMERATORS" }
15 end program main