blob: 6e26ecfa639324916865b41cf24370361f374c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// { dg-do assemble }
#include <stdlib.h>
class A {
public:
void z();
A(void) {}
private:
A(const A &) { abort(); } // { dg-error "private" }
const A& operator =(const A &) { abort(); }
};
class B : public A { // { dg-error "" }
public:
B(void) {}
};
void f(B b) { // { dg-error "initializing" }
}
void g() {
B h;
f(h); // { dg-message "synthesized|deleted" "synth" }
}
|