ns1.C: Remove private member warning.

* g++.old-deja/g++.brendan/ns1.C: Remove private member warning.
	* g++.old-deja/g++.robertl/eb71.C: Likewise.
	* g++.old-deja/g++.brendan/warnings1.C: Add -Wctor-dtor-privacy.
	* g++.old-deja/g++.other/warn3.C: Likewise.

From-SVN: r66723
This commit is contained in:
Kriang Lerdsuwanakij 2003-05-12 16:07:51 +00:00 committed by Kriang Lerdsuwanakij
parent 0c130f8121
commit 8015bbee75
5 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2003-05-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.brendan/ns1.C: Remove private member warning.
* g++.old-deja/g++.robertl/eb71.C: Likewise.
* g++.old-deja/g++.brendan/warnings1.C: Add -Wctor-dtor-privacy.
* g++.old-deja/g++.other/warn3.C: Likewise.
2003-05-11 Roger Sayle <roger@eyesopen.com>
* gcc.dg/i386-387-1.c: Update to also test log.

View File

@ -7,7 +7,7 @@ struct B
};
class C
{ // { dg-error "" } warning
{
int g();
};

View File

@ -1,4 +1,5 @@
// { dg-do assemble }
// { dg-options "-Wctor-dtor-privacy" }
// GROUPS passed warnings
// there should be a warning about foo only defining private methods
class foo { // { dg-error "" } .*

View File

@ -1,4 +1,5 @@
// { dg-do assemble }
// { dg-options "-Wctor-dtor-privacy" }
class A {
};

View File

@ -15,7 +15,7 @@ friend class D;
unsigned counter;
};
class D { //{ dg-warning "" } only private members
class D {
int ins( B*&);
};