Commit ae0eb5f1 by Mark Mitchell Committed by Mark Mitchell

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

From-SVN: r75408
parent 09438bde
2004-01-04 Mark Mitchell <mark@codesourcery.com> 2004-01-04 Mark Mitchell <mark@codesourcery.com>
* g++.dg/init/copy7.C: Add missing dg-error markers.
PR c++/12226 PR c++/12226
* g++.dg/init/copy7.c: New test. * g++.dg/init/copy7.c: New test.
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
class foo { class foo {
private: private:
foo(const foo &); foo(const foo &); // { dg-error "" }
public: public:
foo(); foo();
}; };
const foo &bar = foo(); const foo &bar = foo(); // { dg-error "" }
class derived : public foo { class derived : public foo {
private: private:
derived(const derived&); derived(const derived&); // { dg-error "" }
public: public:
derived(); derived();
}; };
const foo& baz = derived(); const foo& baz = derived(); // { dg-error "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment