blob: c3e9d4e56ae27d3f5926b87a209c92b6e702c5a4 [file] [log] [blame]
// PR c++/44086
// { dg-do compile }
struct A // { dg-error "uninitialized" "" { target c++11 } }
{
int const i : 2; // { dg-message "should be initialized" }
};
void f()
{
A a; // { dg-error "deleted|uninitialized const" }
new A; // { dg-error "deleted|uninitialized const" }
A(); // { dg-error "deleted" "" { target c++11 } }
new A(); // { dg-error "deleted" "" { target c++11 } }
}