From-SVN: r15716
This commit is contained in:
Jason Merrill 1997-09-25 21:38:04 -04:00
parent 653cc74afc
commit 896470e737
3 changed files with 4 additions and 5 deletions

View File

@ -10,8 +10,8 @@ struct A {
static int operator+(A,A); // ERROR - must be nonstatic
int operator+(int a, int b = 1); // ERROR - two errors on this line
int operator++(char); // ERROR - must take 'int'
void operator delete (void *); // ERROR - overloaded
void operator delete (void *, unsigned long); // ERROR - overloaded
void operator delete (void *);
void operator delete (void *, unsigned long);
};
struct B {

View File

@ -1,6 +1,5 @@
// Build don't link:
// GROUPS passed temps
// excess errors test - XFAIL *-*-*
template <class B >
class A {

View File

@ -29,10 +29,10 @@ class B
int x;
virtual ~B() {}
void operator delete(void*,size_t s)
{// ERROR - previous declaration as.*
{
printf("B::delete() %d\n",s);
}
void operator delete(void*){} // ERROR - .B::operator.*overloaded
void operator delete(void*){}
};
main()