FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / enum8.C
blob0a3220f7faaaadef314cf4b560fc7267859e48da
1 // Bug: the switch fails on the Alpha because folding ef - 1 fails.
3 enum foo { one=1, thirty=30 };
5 int f (enum foo ef)
7   switch (ef)
8     {
9     case one:
10     case thirty:
11       return 0;
12     default:
13       return 1;
14     }
17 int main ()
19   return f (one);