summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/scoped_enum_98.C
blob: 8c24e86bac2ddc7cdfdfcba352b7455b7e561c50 (plain)
1
2
3
4
// { dg-do compile }
// { dg-options "-std=c++98" }
enum class E1 { e1 };  // { dg-warning "scoped enums" }
enum E2 : char { e2 }; // { dg-warning "scoped enums" }