1 // { dg-do compile }
2 // { dg-options "-std=c++98" }
3 enum class E1 { e1 };  // { dg-warning "scoped enums" }
4 enum E2 : char { e2 }; // { dg-warning "scoped enums" }
5