// Clause: 7.24.2.1 — If copying takes place between overlapping objects, memcpy is UB.
#include <string.h>
#include <stdio.h>
int main(void){
    char buf[8] = "ABCDEFG";
    memcpy(buf+1, buf, 6); // UB
    puts(buf);
    return 0;
}
