1/* This testcase is meant to be compiled together with enum_10.f90  */
2
3extern void abort (void);
4
5typedef enum
6  { MAX1 = 127 } onebyte;
7
8void f1_ (onebyte *i, int *j)
9{
10  if (*i != *j) abort ();
11}
12
13typedef enum
14  { MAX2 = 32767 } twobyte;
15
16void f2_ (twobyte *i, int *j)
17{
18  if (*i != *j) abort ();
19}
20
21typedef enum
22  { MAX4 = 2000000 } fourbyte; /* don't need the precise value. */
23
24void f4_ (fourbyte *i, int *j)
25{
26  if (*i != *j) abort ();
27}
28