summarylogtreecommitdiffstats
path: root/tests_dynamic_exceptions.patch
blob: fa492c62ccc9c85e877542455578fd568a866753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff --color -ruN 1/tests/testoperators.cpp 2/tests/testoperators.cpp
--- 1/tests/testoperators.cpp	2021-02-14 17:36:00.000000000 +0100
+++ 2/tests/testoperators.cpp	2021-09-13 11:26:30.797313059 +0200
@@ -37,26 +37,26 @@
 {
 public:
   /* 1x : SINGLE OBJECT FORM - NO DEBUG INFORMATION */
-  void * operator new( DUMA_SIZE_T )                            throw(std::bad_alloc);
+  void * operator new( DUMA_SIZE_T )                            throw();
   void * operator new( DUMA_SIZE_T , const std::nothrow_t & )   throw();
   void   operator delete( void * )                              throw();
   void   operator delete( void * , const std::nothrow_t & )     throw();
 
   /* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
-  void * operator new[]( DUMA_SIZE_T )                          throw(std::bad_alloc);
+  void * operator new[]( DUMA_SIZE_T )                          throw();
   void * operator new[]( DUMA_SIZE_T , const std::nothrow_t & ) throw();
   void   operator delete[]( void * )                            throw();
   void   operator delete[]( void *, const std::nothrow_t & )    throw();
 
 #ifndef DUMA_NO_LEAKDETECTION
   /* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */
-  void * operator new( DUMA_SIZE_T, const char *, int )                         throw( std::bad_alloc );
+  void * operator new( DUMA_SIZE_T, const char *, int )                         throw();
   void * operator new( DUMA_SIZE_T, const std::nothrow_t &, const char *, int ) throw();
   void   operator delete( void *, const char *, int )                           throw();
   void   operator delete( void *, const std::nothrow_t &, const char *, int )   throw();
 
   /* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */
-  void * operator new[]( DUMA_SIZE_T, const char *, int )                         throw( std::bad_alloc );
+  void * operator new[]( DUMA_SIZE_T, const char *, int )                         throw();
   void * operator new[]( DUMA_SIZE_T, const std::nothrow_t &, const char *, int ) throw();
   void   operator delete[]( void *, const char *, int )                           throw();
   void   operator delete[]( void *, const std::nothrow_t &, const char *, int )   throw();
@@ -70,7 +70,7 @@
 /* 1x : SINGLE OBJECT FORM - NO DEBUG INFORMATION */
 
 void * optest::operator new( DUMA_SIZE_T s )
-throw(std::bad_alloc)
+throw()
 {
   (void)s;
   return ::new optest;
@@ -101,7 +101,7 @@
 
 /* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
 void * optest::operator new[]( DUMA_SIZE_T s )
-throw(std::bad_alloc)
+throw()
 {
   return ::new optest[ s / sizeof(optest) ];    // "s / sizeof()" not correct but works for this test
 }
@@ -129,7 +129,7 @@
 
 /* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */
 void * optest::operator new( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc )
+throw()
 {
   (void)s;
   return ::new(f,l) optest;
@@ -157,7 +157,7 @@
 
 /* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */
 void * optest::operator new[]( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc )
+throw()
 {
   return ::new(f,l) optest[s / sizeof(optest)];     // "s / sizeof()" not correct but works for this test
 }