1 /* { dg-do run } */ 2 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */ 3 4 5 #include "mpx-check.h" 6 #include "string.h" 7 mpx_test(int argc,const char ** argv)8int mpx_test (int argc, const char **argv) 9 { 10 int *buf = (int *)malloc (100 * sizeof(int)); 11 12 memmove (buf, NULL, 0); 13 memmove (NULL, buf, 0); 14 15 free (buf); 16 17 return 0; 18 } 19