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