repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
First version committed to git
[zpugcc/jano.git]
/
toolchain
/
gcc
/
gcc
/
testsuite
/
g++.old-deja
/
g++.bob
/
inherit2.C
blob
e943a1caa18d960e05a94093437dfc6e49eb9e1b
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 "" }
10
const A& operator =(const A &) { abort(); }
11
};
12
13
class B : public A {
14
public:
15
B(void) {}
16
};
17
18
void f(B b) {
19
}
20
21
void g() {
22
B h;
23
f(h); // { dg-error "" }
24
}