aboutsummaryrefslogtreecommitdiffstats
path: root/src/malloc.cc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:26:49 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:26:49 +0200
commit63eeae2e150fc4dca0d178c2644db3d5c4a16328 (patch)
treefe453e9022dcaf41f4ea0ff665f2277a58bb01a2 /src/malloc.cc
parentadd alloca (diff)
downloadmalloc-vs-new-63eeae2e150fc4dca0d178c2644db3d5c4a16328.tar.gz
malloc-vs-new-63eeae2e150fc4dca0d178c2644db3d5c4a16328.tar.bz2
malloc-vs-new-63eeae2e150fc4dca0d178c2644db3d5c4a16328.tar.xz
Improve makefile, style, and gitignore
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/malloc.cc')
-rw-r--r--src/malloc.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/malloc.cc b/src/malloc.cc
deleted file mode 100644
index 22b4cdb..0000000
--- a/src/malloc.cc
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Copying and distribution of this file, with or without modification,
- * are permitted in any medium without royalty provided the copyright
- * notice and this notice are preserved. This file is offered as-is,
- * without any warranty.
- */
-#include <cstdlib>
-
-int main(void)
-{
- char* a;
- size_t i;
-
- for (i = 0; i < 40000000UL; i++)
- a = (char*)malloc(16);
-
- return 0;
-}
-