aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-12 02:23:22 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-12 02:23:22 -0700
commit7828456b30829e68a959f74e86d02e737d590cc2 (patch)
tree783c37c7937a7895207180d59a25556956d853aa /test/run_tests.cpp
parent592210a1739dfe3fe506260c11b8b5e5d8a5a715 (diff)
downloadzig-7828456b30829e68a959f74e86d02e737d590cc2.tar.gz
zig-7828456b30829e68a959f74e86d02e737d590cc2.zip
std: delete malloc and free
later we'll add a full featured allocator instead of this
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp19
1 files changed, 0 insertions, 19 deletions
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 {