Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / enum_2.f90
blobfcb37036644aa66420680882fb6873aad2e6f5a6
1 ! Program to test the incremental assignment of enumerators
3 program main
4 implicit none
6 enum, bind (c)
7 enumerator :: red = 4 , yellow, blue
8 enumerator green
9 end enum
11 enum, bind (c)
12 enumerator :: sun = -10 , mon, tue
13 enumerator :: wed = 10, sat
14 end enum
17 if (red /= 4 ) STOP 1
18 if (yellow /= (red + 1)) STOP 2
19 if (blue /= (yellow + 1)) STOP 3
20 if (green /= (blue + 1)) STOP 4
23 if (sun /= -10 ) STOP 5
24 if (mon /= (sun + 1)) STOP 6
25 if (tue /= (mon + 1)) STOP 7
26 if (wed /= 10) STOP 8
27 if (sat /= (wed+1)) STOP 9
29 end program main