// Minimal compiler test for C compiler.
//
// Semantic mistakes like these are common enough that any compiler MUST produce warnings
// like those in the comments if it is to be used for more than "hello, world".

#include <string.h>

int
main (void)
{
  char a[10] = { 0 };
  char *b = &a[0];

  memmove (b, ++b, 9);          // warning: operation on b may be undefined
  return 0;
}
