blob: c3832ae433b74dd679182b07a6a79b8378f9352e [file] [log] [blame]
// PR c++/37946
// { dg-do compile { target c++11 } }
enum class E : char
{
e1,
e2
};
inline E operator| (E a1, E a2)
{
char ret = static_cast<char> (a1)
| static_cast<char> (a2);
return static_cast<E>(ret);
}