From 7828456b30829e68a959f74e86d02e737d590cc2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 12 Feb 2016 02:23:22 -0700 Subject: std: delete malloc and free later we'll add a full featured allocator instead of this --- test/run_tests.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index b372473eec..e7d696a34c 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1023,25 +1023,6 @@ pub fn main(args: [][]u8) -> %void { } )SOURCE", "OK\n"); - add_simple_case("malloc and free", R"SOURCE( -import "mem.zig"; -import "std.zig"; - -pub fn main(args: [][]u8) -> %void { - var ptr = malloc(1) ?? unreachable{}; - - *ptr = 6; - - if (*ptr != 6) { - %%stdout.printf("BAD\n"); - } - - free(ptr); - - %%stdout.printf("OK\n"); -} - )SOURCE", "OK\n"); - add_simple_case("store member function in variable", R"SOURCE( import "std.zig"; struct Foo { -- cgit v1.2.3