summaryrefslogtreecommitdiff
path: root/tests/test_memchr_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_memchr_null.c')
-rw-r--r--tests/test_memchr_null.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_memchr_null.c b/tests/test_memchr_null.c
new file mode 100644
index 0000000..02b994d
--- /dev/null
+++ b/tests/test_memchr_null.c
@@ -0,0 +1,13 @@
1#include "common.h"
2
3#include <string.h>
4
5int main(int argc, char** argv) {
6#ifndef __GNUC__
7 CHK_FAIL_START
8 memchr(NULL, (int)'A', 0);
9 CHK_FAIL_END
10#endif
11
12 return ret;
13}