1// PR c++/44086 2// { dg-do compile } 3 4struct A // { dg-error "uninitialized" "" { target c++11 } } 5{ 6 int const i : 2; // { dg-message "should be initialized" } 7}; 8 9void f() 10{ 11 A a; // { dg-error "deleted|uninitialized const" } 12 new A; // { dg-error "deleted|uninitialized const" } 13 A(); // { dg-error "deleted" "" { target c++11 } } 14 new A(); // { dg-error "deleted" "" { target c++11 } } 15} 16