2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / enum8.C
blob9d0d94bf41a9a3abc0cafccb3ff10cc0ddc7a653
1 // { dg-do run  }
2 // Bug: the switch fails on the Alpha because folding ef - 1 fails.
4 enum foo { one=1, thirty=30 };
6 int f (enum foo ef)
8   switch (ef)
9     {
10     case one:
11     case thirty:
12       return 0;
13     default:
14       return 1;
15     }
18 int main ()
20   return f (one);