diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:26:49 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:26:49 +0200 |
commit | 63eeae2e150fc4dca0d178c2644db3d5c4a16328 (patch) | |
tree | fe453e9022dcaf41f4ea0ff665f2277a58bb01a2 /new.cc | |
parent | add alloca (diff) | |
download | malloc-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 '')
-rw-r--r-- | new.cc (renamed from src/new.cc) | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -6,14 +6,15 @@ */ #include <cstdlib> -int main(void) + +int +main(void) { - char* a; - size_t i; - - for (i = 0; i < 40000000UL; i++) - a = new char[16]; - - return 0; -} + char *a; + size_t i; + for (i = 0; i < 40000000UL; i++) + a = new char[16]; + + return 0; +} |