C++: Repair test.

This commit is contained in:
Geoffrey White
2021-03-26 19:12:09 +00:00
parent 4100d68a71
commit c6e7b8d4fd
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
| test.cpp:30:15:30:26 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:38:9:38:20 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:81:18:81:43 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:87:14:87:39 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:92:13:92:38 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:50:13:50:38 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:51:22:51:47 | call to operator new[] | memory allocation error check is incorrect or missing |
| test.cpp:53:18:53:43 | call to operator new[] | memory allocation error check is incorrect or missing |

View File

@@ -14,8 +14,8 @@ using namespace std;
void* operator new(std::size_t _Size);
void* operator new[](std::size_t _Size);
void* operator new( std::size_t count, const std::nothrow_t& tag );
void* operator new[]( std::size_t count, const std::nothrow_t& tag );
void* operator new( std::size_t count, const std::nothrow_t& tag ) noexcept;
void* operator new[]( std::size_t count, const std::nothrow_t& tag ) noexcept;
void badNew_0_0()
{