* g++.dg/init/copy7.C: Add missing dg-error markers.

From-SVN: r75408
This commit is contained in:
Mark Mitchell 2004-01-05 01:28:26 +00:00 committed by Mark Mitchell
parent 09438bde07
commit ae0eb5f1bc
2 changed files with 6 additions and 4 deletions

View File

@ -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.

View File

@ -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 "" }