blob: 33e58dfec3245b1796bba0f5e2a01391dbdbbbcc [file] [log] [blame]
// { dg-do compile }
class foo {
public:
foo();
};
class bar: public foo { // { dg-error "uninitialized" }
// { dg-message "implicitly deleted" "" { target c++11 } .-1 }
private:
int const a; // { dg-message "should be initialized" }
};
foo::foo() {
}
int main(int argc, char **argv)
{
bar x; // { dg-error "deleted" "" { target c++11 } }
// { dg-message "synthesized" "" { target { ! c++11 } } .-1 }
}