about summary refs log tree commit diff homepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/fstatat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/fstatat.c b/cmake/fstatat.c
new file mode 100644
index 00000000..58aa9301
--- /dev/null
+++ b/cmake/fstatat.c
@@ -0,0 +1,9 @@
+#include <fcntl.h>
+#include <stddef.h>
+#include <sys/stat.h>
+
+int main(void) {
+  struct stat buf;
+  #pragma GCC diagnostic error "-Wnonnull"
+  fstatat(0, NULL, &buf, 0);
+}