1 // { dg-do compile { target c++11 } }
2 enum class Col { red, yellow, green };
4 int x = Col::red; // { dg-error "cannot convert" }
9 if (y) { } // { dg-error "could not convert" }
12 enum direction { left='l', right='r' };
21 enum class altitude { high='h', low='l' };
24 a = high; // { dg-error "not declared in this scope" }