]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix function prototype as pointed out by clang.
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Sep 2014 19:23:20 +0000 (19:23 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Sep 2014 19:23:20 +0000 (19:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14470

memcheck/tests/new_override.cpp

index b3feb0c72687b655de71037f6f347b67a456bedc..200173617c2fee8038d70f37363192b4735da713 100644 (file)
@@ -1,12 +1,13 @@
 #include <stdlib.h>
 #include <stdio.h>
+#include <new>
 
 class Test {
 public:
   int a, b, c, d;
 };
 
-void *operator new[](size_t size)
+void *operator new[](size_t size) throw(std::bad_alloc)
 {
   void *ret = malloc(size);
   printf("Here.\n");