update
From-SVN: r15716
This commit is contained in:
parent
653cc74afc
commit
896470e737
@ -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 {
|
||||
|
@ -1,6 +1,5 @@
|
||||
// Build don't link:
|
||||
// GROUPS passed temps
|
||||
// excess errors test - XFAIL *-*-*
|
||||
|
||||
template <class B >
|
||||
class A {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user