Commit 896470e7 by Jason Merrill

update

From-SVN: r15716
parent 653cc74a
...@@ -10,8 +10,8 @@ struct A { ...@@ -10,8 +10,8 @@ struct A {
static int operator+(A,A); // ERROR - must be nonstatic static int operator+(A,A); // ERROR - must be nonstatic
int operator+(int a, int b = 1); // ERROR - two errors on this line int operator+(int a, int b = 1); // ERROR - two errors on this line
int operator++(char); // ERROR - must take 'int' int operator++(char); // ERROR - must take 'int'
void operator delete (void *); // ERROR - overloaded void operator delete (void *);
void operator delete (void *, unsigned long); // ERROR - overloaded void operator delete (void *, unsigned long);
}; };
struct B { struct B {
......
// Build don't link: // Build don't link:
// GROUPS passed temps // GROUPS passed temps
// excess errors test - XFAIL *-*-*
template <class B > template <class B >
class A { class A {
......
...@@ -29,10 +29,10 @@ class B ...@@ -29,10 +29,10 @@ class B
int x; int x;
virtual ~B() {} virtual ~B() {}
void operator delete(void*,size_t s) void operator delete(void*,size_t s)
{// ERROR - previous declaration as.* {
printf("B::delete() %d\n",s); printf("B::delete() %d\n",s);
} }
void operator delete(void*){} // ERROR - .B::operator.*overloaded void operator delete(void*){}
}; };
main() main()
......
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