2 // { dg-options "-std=c++0x" }
3 enum class Col { red, yellow, green };
5 int x = Col::red; // { dg-error "cannot convert" }
10 if (y) { } // { dg-error "could not convert" }
13 enum direction { left='l', right='r' };
22 enum class altitude { high='h', low='l' };
25 a = high; // { dg-error "not declared in this scope" }