Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/scoped_enum12.C

raw
1 // PR c++/111895
2 // { dg-do compile { target c++11 } }
3
4 enum class o_field : unsigned char { no, yes, different_from_s };
5 struct fields {
6 o_field o : 2;
7 };
8 bool func(fields f) { return static_cast<bool>(f.o); }