* g++.dg/init/copy7.C: Add missing dg-error markers.
From-SVN: r75408
This commit is contained in:
parent
09438bde07
commit
ae0eb5f1bc
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
2004-01-04 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* g++.dg/init/copy7.C: Add missing dg-error markers.
|
||||
|
||||
PR c++/12226
|
||||
* g++.dg/init/copy7.c: New test.
|
||||
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
class foo {
|
||||
private:
|
||||
foo(const foo &);
|
||||
foo(const foo &); // { dg-error "" }
|
||||
public:
|
||||
foo();
|
||||
};
|
||||
const foo &bar = foo();
|
||||
const foo &bar = foo(); // { dg-error "" }
|
||||
|
||||
class derived : public foo {
|
||||
private:
|
||||
derived(const derived&);
|
||||
derived(const derived&); // { dg-error "" }
|
||||
public:
|
||||
derived();
|
||||
};
|
||||
|
||||
const foo& baz = derived();
|
||||
const foo& baz = derived(); // { dg-error "" }
|
||||
|
|
Loading…
Add table
Reference in a new issue