2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / enum_10.c
blob28beb12f821abb85a0c9732f1ddc31e5d895f2d0
1 /* This testcase is meant to be compiled together with enum_10.f90 */
3 extern void abort (void);
5 typedef enum
6 { MAX1 = 127 } onebyte;
8 void f1_ (onebyte *i, int *j)
10 if (*i != *j) abort ();
13 typedef enum
14 { MAX2 = 32767 } twobyte;
16 void f2_ (twobyte *i, int *j)
18 if (*i != *j) abort ();
21 typedef enum
22 { MAX4 = 2000000 } fourbyte; /* don't need the precise value. */
24 void f4_ (fourbyte *i, int *j)
26 if (*i != *j) abort ();