repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy7.C
blob
0f604371504b14970ef4b2645d48ef25dd97eb74
1
// PR c++/12226
2
3
class foo {
4
private:
5
foo(const foo &); // { dg-error "" }
6
public:
7
foo();
8
};
9
const foo &bar = foo(); // { dg-error "" }
10
11
class derived : public foo {
12
private:
13
derived(const derived&); // { dg-error "" }
14
public:
15
derived();
16
};
17
18
const foo& baz = derived(); // { dg-error "" }