summaryrefslogtreecommitdiff
path: root/test/new.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/new.cc')
-rw-r--r--test/new.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/new.cc b/test/new.cc
deleted file mode 100644
index 73184ea..0000000
--- a/test/new.cc
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <stdlib.h>
-
-// Stub (incomplete) implementations to allow testing the library without an
-// STL implementation
-//
-// Note: gcc complains on x86 if this takes a size_t, and on x86-64 if it takes
-// an unsigned int. This is just a stub, so it doesn't matter too much.
-void *operator new(unsigned int s)
-{
- return malloc(s);
-}
-
-void operator delete(void *o)
-{
- free(o);
-}