repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged trunk at revision 161680 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.bob
/
inherit2.C
blob
6e26ecfa639324916865b41cf24370361f374c0f
1
// { dg-do assemble }
2
#include <stdlib.h>
3
4
class A {
5
public:
6
void z();
7
A(void) {}
8
private:
9
A(const A &) { abort(); } // { dg-error "private" }
10
const A& operator =(const A &) { abort(); }
11
};
12
13
class B : public A { // { dg-error "" }
14
public:
15
B(void) {}
16
};
17
18
void f(B b) { // { dg-error "initializing" }
19
}
20
21
void g() {
22
B h;
23
f(h); // { dg-message "synthesized|deleted" "synth" }
24
}