1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 
4 enum eumtype { ENUM1, ENUM2 };
5 void g(const eumtype kind );
6 void f(long i);
g(const eumtype kind)7 void g(const eumtype kind)
8 {
9   if ((kind != ENUM1) && (kind != ENUM2))
10     f(kind);
11 }
12