Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.dg / cpp0x / enum23.C
1 // PR c++/51242
2 // { dg-do compile { target c++11 } }
3
4 enum class MyEnum { A = 1 };
5
6 struct MyClass
7 {
8   MyEnum Field1 : 3; // { dg-bogus "warning: 'MyClass::Field1' is too small" "" { xfail *-*-* } }
9 };