diff options
Diffstat (limited to 'gdb/testsuite/gdb.c++/cplusfuncs.cc')
-rw-r--r-- | gdb/testsuite/gdb.c++/cplusfuncs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.c++/cplusfuncs.cc b/gdb/testsuite/gdb.c++/cplusfuncs.cc index 924cf54..acb73b1 100644 --- a/gdb/testsuite/gdb.c++/cplusfuncs.cc +++ b/gdb/testsuite/gdb.c++/cplusfuncs.cc @@ -45,7 +45,7 @@ public: void operator ->* (foo&); void operator [] (foo&); void operator () (foo&); - void* operator new (size_t); + void* operator new (size_t) throw (); void operator delete (void *); /**/ operator int (); /**/ operator char* (); @@ -114,7 +114,7 @@ void foo::operator ^= (foo& afoo) { afoo.ifoo = 0; } void foo::operator ->* (foo& afoo) { afoo.ifoo = 0; } void foo::operator [] (foo& afoo) { afoo.ifoo = 0; } void foo::operator () (foo& afoo) { afoo.ifoo = 0; } -void* foo::operator new (size_t ival) { ival = 0; return 0; } +void* foo::operator new (size_t ival) throw () { ival = 0; return 0; } void foo::operator delete (void *ptr) { ptr = 0; } /**/ foo::operator int () { return 0; } /**/ foo::operator char* () { return 0; } |