blob: 4a6ce9f74434593730ecc5e587f7d63d294b476a [file] [log] [blame]
// { dg-do assemble }
#include <stdlib.h>
class A {
public:
void z();
A(void) {}
private:
A(const A &) { abort(); } // { dg-message "private" }
const A& operator =(const A &) { abort(); }
};
class B : public A { // { dg-error "" }
public:
B(void) {}
};
void f(B b) { // { dg-message "initializing" }
}
void g() {
B h;
f(h); // { dg-message "synthesized|deleted" "synth" }
}