summaryrefslogtreecommitdiff
path: root/lib/mlibc/tests/bsd/sbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/tests/bsd/sbrk.c')
-rw-r--r--lib/mlibc/tests/bsd/sbrk.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mlibc/tests/bsd/sbrk.c b/lib/mlibc/tests/bsd/sbrk.c
new file mode 100644
index 0000000..88b0407
--- /dev/null
+++ b/lib/mlibc/tests/bsd/sbrk.c
@@ -0,0 +1,9 @@
+#include <assert.h>
+#include <stdio.h>
+#include <unistd.h>
+
+int main() {
+ void *ret = sbrk(0);
+ assert(ret != (void *) -1);
+ assert(ret);
+}