summaryrefslogtreecommitdiff
path: root/tests/test_memmove_null_dst.c
blob: 9455a5a87c99bb698512a5b4e47b06ed86efa7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
#ifndef __GNUC__
  char buffer[12] = {0};

  CHK_FAIL_START
  memmove(buffer, NULL, 0);
  CHK_FAIL_END

  puts(buffer);
#endif
  return ret;
}