mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 01:05:25 +08:00
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:
parent
0c130f8121
commit
8015bbee75
@ -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.
|
||||
|
@ -7,7 +7,7 @@ struct B
|
||||
};
|
||||
|
||||
class C
|
||||
{ // { dg-error "" } warning
|
||||
{
|
||||
int g();
|
||||
};
|
||||
|
||||
|
@ -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 "" } .*
|
||||
|
@ -1,4 +1,5 @@
|
||||
// { dg-do assemble }
|
||||
// { dg-options "-Wctor-dtor-privacy" }
|
||||
|
||||
class A {
|
||||
};
|
||||
|
@ -15,7 +15,7 @@ friend class D;
|
||||
unsigned counter;
|
||||
};
|
||||
|
||||
class D { //{ dg-warning "" } only private members
|
||||
class D {
|
||||
|
||||
int ins( B*&);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user