2 enum-2.c from the execute part of the gcc torture tests.
11 /* Copyright (C) 2000 Free Software Foundation */
12 /* by Alexandre Oliva <aoliva@redhat.com> */
14 enum foo
{ FOO
, BAR
};
16 /* Even though the underlying type of an enum is unspecified, the type
17 of enumeration constants is explicitly defined as int (6.4.4.3/2 in
18 the C99 Standard). Therefore, `i' must not be promoted to
19 `unsigned' in the comparison below; we must exit the loop when it
23 testTortureExecute (void)
26 for (i
= BAR
; i
>= FOO
; --i
)