flush
[m6w6/ext-psi] / tests / pipe / pipe.psi
diff --git a/tests/pipe/pipe.psi b/tests/pipe/pipe.psi
new file mode 100644 (file)
index 0000000..5bc3cd6
--- /dev/null
@@ -0,0 +1,8 @@
+
+extern int pipe(int fds[2]);
+
+function \pipe(array &$fds = null) : int {
+       return to_int(pipe);
+       let fds = calloc(2, int);
+       set $fds = to_array(fds);
+}