make/test_mkstemp.c

changeset 1661
a389bf17eaaa
parent 1620
bf5d647f939d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/make/test_mkstemp.c	Tue Dec 23 14:31:56 2025 +0100
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+
+static void test_mkstemp() {
+    char tpl[] = "/tmp/testXXXXXX";
+    int fd = mkstemp(tpl);
+    // never called, no need to close fd
+}
+
+int main() {
+    return 0;
+}

mercurial