summaryrefslogtreecommitdiff
path: root/tests/test_memmove_null_src.c
blob: e03b97a0d023f7add40fecb10566bb5a084076b5 (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(NULL, buffer, 0);
  CHK_FAIL_END

  puts(buffer);
#endif
  return ret;
}