summaryrefslogtreecommitdiff
path: root/tests/test_ppoll_static.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ppoll_static.c')
-rw-r--r--tests/test_ppoll_static.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_ppoll_static.c b/tests/test_ppoll_static.c
new file mode 100644
index 0000000..c5e0155
--- /dev/null
+++ b/tests/test_ppoll_static.c
@@ -0,0 +1,17 @@
1#include "common.h"
2
3#define _GNU_SOURCE
4#include <poll.h>
5
6int main(int argc, char** argv) {
7#if !defined(__clang__)
8 struct pollfd buffer[12] = {0};
9
10 CHK_FAIL_START
11 ppoll(buffer, 14, NULL, NULL);
12 CHK_FAIL_END
13
14 puts((const char*)buffer);
15#endif
16 return ret;
17}